Skip to content

PChadx/HEXTerminator

 
 

Repository files navigation

HEXTerminator Telegram bot code

This is the code for the Telegram antispam bot to be used in select groups.

Installation

Local launch

  1. Clone this repo: git clone https://github.com/PChadx/HEXTerminator
  2. Launch the mongo database locally
  3. Create .env with the environment variables listed below
  4. Run yarn install in the root folder
  5. Run yarn distribute

And you should be good to go! Feel free to fork and submit pull requests. Thanks!

Docker

  1. Clone this repo: git clone https://github.com/PChadx/HEXTerminator
  2. Replace the dummy environment variables in docker-compose.yml with the ones listed below
  3. Run docker-compose up -d

Environment variables

  • TOKEN — Telegram bot token
  • MONGO— URL of the mongo database
  • REPORT_CHAT_ID— id of the Telegram chat where to send errors

Also, please, consider looking at .env.sample.

License

Based on the amazing Shieldy bot https://github.com/backmeupplz/shieldy.

MIT — use for any purpose. Would be great if you could leave a note about the original developers. Thanks!

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.1%
  • Other 0.9%