@shieldy_bot Telegram bot repository
This is the code for the anti-spam Telegram bot I've built. Enjoy and feel free to reuse!
git clone https://github.com/backmeupplz/shieldy
.env
with the environment variables listed belowyarn install
in the root folderyarn distribute
And you should be good to go! Feel free to fork and submit pull requests. Thanks!
git clone https://github.com/backmeupplz/shieldy
docker-compose.yml
with the ones listed belowdocker-compose up -d
TOKEN
— Telegram bot tokenMONGO
— URL of the mongo databaseADMIN
— Telegram user ID of the bot administratorREPORT_CHAT_ID
— Telegram chat ID of the channel where the bot should report errorsPREMIUM
— Whether the bot should be premium or notSTRIPE_SECRET_KEY
— Stripe secret keySTRIPE_SIGNING_SECRET
— Stripe signing secretMONTHLY_PRICE
— Monthly Stripe price id of the premiumYEARLY_PRICE
— Yearly Stripe price id of the premiumLIFETIME_PRICE
— Lifetime Stripe price id of the premiumAlso, please, consider looking at .env.sample
.
Any commit pushed to master gets deployed to @shieldy_bot via CI Ninja.
MIT — use for any purpose. Would be great if you could leave a note about the original developers. Thanks!