A Telegram bot that creates daily lucky draws for users. Players send stars to enter the pool, and every day at 23:59 UTC, a winner is randomly selected to receive the pooled prize (minus a small platform fee).
- π« Daily lucky draw system
- π° User balance management
- ποΈ Fair random winner selection
- π Transaction tracking
- π User statistics and history
- π₯ Referral system
- π Real-time updates with Supabase
- Dart SDK
- Supabase account and project
- Telegram Bot Token (from @BotFather)
-
Clone the repository
git clone https://github.com/eiirn/luckeverydaybot.git cd luckeverydaybot -
Install dependencies
dart pub get
-
Create a
.envfile in the root directory. Check the .env.sample file.
- Check the
lib/models/to create a db structure matching it.
dart run bin/main.dartTracks user information and statistics.
Records all star transfers between users and the bot.
Manages daily pool entries and winners.
/start- Start the bot and get a welcome message/join- To join today's pool/today- View today's stats (winnings, participations, etc.)/help- Get help with bot usage/invite- Get your referral link
- Users send stars to the bot to participate in the daily pool
- Each star sent is recorded as a transaction
- At 23:59 UTC, the bot randomly selects a winner
- The winner receives the pool prize minus the platform fee (15%)
- A new pool starts for the next day
Contributions are welcome! Please feel free to submit a Pull Request or open an issue.
This project is licensed under the MIT License - see the LICENSE file for details.