@sesuritu_bot Telegram bot code
This is the code for the anti-spam Telegram bot I've built. Enjoy and feel free to reuse!
You can ask questions/submit feature requests in the @sesuritu_chat chat (or issues of this repo).
Actually, this is a fork of https://github.com/1inch/shieldy
- Clone this repo:
git clone https://github.com/Rulexec/shieldy
- Launch the mongo database locally
- Create
.env
with the environment variables listed below - Run
yarn install
in the root folder - Run
yarn distribute
And you should be good to go! Feel free to fork and submit pull requests. Thanks!
- Clone this repo:
git clone https://github.com/Rulexec/shieldy
- Replace the dummy environment variables in
docker-compose.yml
with the ones listed below - Run
docker-compose up -d
TOKEN
— Telegram bot tokenMONGO
— URL of the mongo database
Also, please, consider looking at src/config.ts
.
- Database from original
shieldy
may be not compatible, you'll need to run https://github.com/Rulexec/shieldy/blob/master/src/database/mongo/migrations/ver-1.ts to ensure that collections contain no duplicates for new indexes - Docker is no more supported, I don't know state of it (maybe it's still fine)
master
branch is not always in sync with @sesuritu_bot
MIT — use for any purpose. Would be great if you could leave a note about the original developers. Thanks!