{"id":27134805,"url":"https://github.com/eiirn/luckeverydaybot","last_synced_at":"2025-04-08T00:59:18.183Z","repository":{"id":284728850,"uuid":"952965197","full_name":"eiirn/luckeverydaybot","owner":"eiirn","description":"An everyday star-drawing game! The Bot will send gifts to the one winner everyday selected at 23:59 GMT!","archived":false,"fork":false,"pushed_at":"2025-03-27T11:14:34.000Z","size":2570,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T11:35:50.963Z","etag":null,"topics":["bot","casino","game","prize","stars","telegram","telegram-stars"],"latest_commit_sha":null,"homepage":"https://telegram.me/TheCashSplashBot","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eiirn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-22T08:57:19.000Z","updated_at":"2025-03-27T11:13:11.000Z","dependencies_parsed_at":"2025-03-27T11:46:24.747Z","dependency_job_id":null,"html_url":"https://github.com/eiirn/luckeverydaybot","commit_stats":null,"previous_names":["eiirn/luckeverydaybot"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiirn%2Fluckeverydaybot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiirn%2Fluckeverydaybot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiirn%2Fluckeverydaybot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiirn%2Fluckeverydaybot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eiirn","download_url":"https://codeload.github.com/eiirn/luckeverydaybot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247755576,"owners_count":20990626,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","casino","game","prize","stars","telegram","telegram-stars"],"created_at":"2025-04-08T00:59:17.273Z","updated_at":"2025-04-08T00:59:18.154Z","avatar_url":"https://github.com/eiirn.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cash Splash Bot 🌟\n\nA 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).\n\n## Features\n\n- 💫 Daily lucky draw system\n- 💰 User balance management\n- 🎟️ Fair random winner selection\n- 📊 Transaction tracking\n- 🏆 User statistics and history\n- 👥 Referral system\n- 🔄 Real-time updates with Supabase\n\n## Technology Stack\n\n- **Backend**: Dart (core)\n- **Database**: [Supabase](https://supabase.com/)\n- **Bot Framework**: [Televerse](https://pub.dev/packages/televerse)\n\n## Setup\n\n### Prerequisites\n\n- Dart SDK\n- Supabase account and project\n- Telegram Bot Token (from [@BotFather](https://t.me/BotFather))\n\n### Environment Setup\n\n1. Clone the repository\n   ```bash\n   git clone https://github.com/eiirn/luckeverydaybot.git\n   cd luckeverydaybot\n   ```\n\n2. Install dependencies\n   ```bash\n   dart pub get\n   ```\n\n3. Create a `.env` file in the root directory. Check the [.env.sample](./.env.sample) file.\n\n### Database Setup\n\n1. Check the `lib/models/` to create a db structure matching it.\n\n### Running the Bot\n\n```bash\ndart run bin/main.dart\n```\n\n## Database Schema\n\n### Users Table\nTracks user information and statistics.\n\n### Transactions Table\nRecords all star transfers between users and the bot.\n\n### Pool Table\nManages daily pool entries and winners.\n\n## Bot Commands\n\n- `/start` - Start the bot and get a welcome message\n- `/join` - To join today's pool\n- `/today` - View today's stats (winnings, participations, etc.)\n- `/help` - Get help with bot usage\n- `/invite` - Get your referral link\n\n## How It Works\n\n1. Users send stars to the bot to participate in the daily pool\n2. Each star sent is recorded as a transaction\n3. At 23:59 UTC, the bot randomly selects a winner\n4. The winner receives the pool prize minus the platform fee (15%)\n5. A new pool starts for the next day\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request or open an issue.\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## Acknowledgements\n\n- [Televerse](https://pub.dev/packages/televerse) - Telegram Bot API framework for Dart\n- [Supabase](https://supabase.com/) - Open source Firebase alternative","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feiirn%2Fluckeverydaybot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feiirn%2Fluckeverydaybot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feiirn%2Fluckeverydaybot/lists"}