@banofbot and @silent_banofbot Telegram bots code https://t.me/banofbot
  • JavaScript 100%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nikita Kolmogorov afee781d8e
Fix the crash on the not-admin warning (#72)
sendAdminError passed chat.language as the message text and the text as
the options object, so node-telegram-bot-api threw "Cannot create
property 'chat_id' on string" and the process exited.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 12:31:28 -07:00
.github Add funding links 2026-10-08 15:24:10 -07:00
helpers Fix the crash on the not-admin warning (#72) 2026-10-22 12:31:28 -07:00
models Add indexes to chat, request, and user schemas for improved query performance 2025-04-11 11:47:23 -07:00
scripts add upload and download localizations script 2020-05-17 12:48:23 -07:00
.env.sample Update .env.sample 2019-04-22 06:57:44 -07:00
.eslintrc.js try adding real names 2018-08-01 19:34:06 -07:00
.gitignore Initial clean commit 2018-05-04 10:58:22 -07:00
.nvmrc Run on Node 22 (Node.js Oct 2026 security release) (#66) 2026-10-21 20:03:35 -07:00
app.js Run on mongoose 6 (replaces #70) (#71) 2026-10-22 12:17:44 -07:00
config.js Initial clean commit 2018-05-04 10:58:22 -07:00
LICENSE Create LICENSE 2018-05-04 11:17:01 -07:00
localize.js Initial clean commit 2018-05-04 10:58:22 -07:00
nixpacks.toml Run on Node 22 (Node.js Oct 2026 security release) (#66) 2026-10-21 20:03:35 -07:00
package.json Run on mongoose 6 (replaces #70) (#71) 2026-10-22 12:17:44 -07:00
README.md Update README.md 2019-04-22 06:57:30 -07:00
yarn.lock Run on mongoose 6 (replaces #70) (#71) 2026-10-22 12:17:44 -07:00

@banofbot and @silent_banofbot code

This repository contains the code for the democracy bots I've built. Readme is still in work, any contributions are welcome.

Installation and local launch

  1. Clone this repo: git clone https://github.com/backmeupplz/banofbot
  2. Launch the mongo database locally
  3. Create .env file with TELEGRAM_API_KEY and MONGO_DB_URL
  4. Run npm i in the root folder
  5. Run npm run start

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

Continuous integration

Any commit pushed to master gets deployed to both @banofbot and @silent_banofbot via CI Ninja.

License

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