A tap-to-earn Telegram bot integrated with the TON blockchain.
KingOnTheMars Tap Bot is a Telegram bot that allows users to earn TON tokens by tapping. Users can set their TON wallet address and earn tokens based on their tapping activity. The bot implements a daily reward system with increasing reward amounts that reset every 30 days.
-
Clone the repository:
git clone https://github.com/BronzonTech-Cloud/king_on_the_mars_tap_bot.git cd king_on_the_mars_tap_bot
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install dependencies:
pip install -r requirements.txt
-
Set up the database:
python -c "from database import create_db; create_db()"
-
Update
config.py
with your Telegram bot token and TON API key:TELEGRAM_TOKEN = 'YOUR_TELEGRAM_BOT_TOKEN' TON_API_KEY = 'YOUR_TON_API_KEY'
-
Run the bot:
python bot.py
-
Schedule the reward distribution:
- Create a cron job to run
reward_scheduler.py
at regular intervals (if needed).
- Create a cron job to run
- Tap-to-Earn: Users can earn tokens by tapping commands.
- Daily Rewards: Users can claim daily rewards that increase by 1000 tokens each day, resetting after 30 days.
- TON Wallet Integration: Users can connect their TON wallet address to receive rewards.
Contributions are welcome! Please create an issue or submit a pull request for any improvements or new features.
This project is licensed under the GNU GENERAL PUBLIC LICENSE. See the LICENSE file for details.