Open a new chat with @eommGiveAwayBot and follow the instructions to create or join a new giveaway!
/start
- Start the bot/help
- Show help/create
- Create a new giveaway. You need to answer 5 questions to create a new giveaway:- Event name: short name of the event
- Event description: long description of the event. Don't forget to include the rules and the exctraction date!
- Event prize: what is the prize of the giveaway?
- Number of winners: how many winners will be extracted?
- Event code: the code to join the event. You will spam this code to let people join the event!
/join
- Join an existing giveaway. You will need to provide the event code./list
- List all the giveaways you created or joined./extract
- List all the giveaways you created and select one to extract the winners! The winners will receive a notification and the giveaway will be closed./abort
- Interrupt the current action when the bot expects an answer from you.
- This bot is built using Telegraf on top of Fastify.
- It is deployed on Platformatic.
- The Postgres database is hosted on filess.io.
- The avatar of the bot is created using Leonardo.AI.
To run it locally you need to create a .env
file with the variables listed in .env.sample
.
Then you can setup the polling mode or the webhook mode with ngrok http 3001
.
Copyright Manuel Spigolon, Licensed under MIT.