No description
  • JavaScript 92.1%
  • EJS 4.9%
  • CSS 2.2%
  • HTML 0.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Maxnflaxl 46c5990f98 fix(telegram): retry startup getMe on transient errors
A single 504 from Telegram at boot left the Telegram side off until restart.

- Add retryWithBackoff to launchBackoff; 401 still fails immediately
- Use it for the main bot and bridge bot getMe calls
2026-10-30 00:16:04 +01:00
.github/ISSUE_TEMPLATE Update issue template 2023-10-20 18:24:14 +02:00
api fix(spam): return 409 on concurrent duplicate spam marks 2026-10-01 22:14:17 +02:00
assets mv assets 2025-11-23 18:45:38 +01:00
commands fix(report): block self-reports on Discord and Telegram 2026-09-03 20:41:10 +02:00
docs docs: expand project, admin-panel and dev docs 2026-04-28 12:16:16 +02:00
events fix(bridge): stop deleting relayed Telegram forwards on Discord 2026-10-02 18:20:47 +02:00
frontend fix(dashboard): make the admin UI usable on phones 2026-09-29 12:47:36 +02:00
handlers/interactions chore: slim code comments across the repo 2026-09-03 20:33:20 +02:00
scripts chore: slim code comments across the repo 2026-09-03 20:33:20 +02:00
telegram fix(telegram): retry startup getMe on transient errors 2026-10-30 00:16:04 +01:00
tests fix(telegram): retry startup getMe on transient errors 2026-10-30 00:16:04 +01:00
utils fix(api): require dev to edit identity paths of dashboard accounts 2026-09-29 12:23:12 +02:00
.example_command commit 2023-08-25 20:31:59 +02:00
.gitignore chore: ignore CLAUDE.md/README and tidy telegram jsdoc 2026-07-07 00:04:41 +02:00
delete-commands.js fix(discord): whitelist double defer, multi-account updates, broadcast DMs 2026-09-03 18:57:27 +02:00
deploy-commands.js chore: slim code comments across the repo 2026-09-03 20:33:20 +02:00
eslint.config.js fix(telegram): gate forwarded-message verification by forwarder 2026-03-31 14:11:31 +02:00
example.config.json fix(api): validate BAR dapp inputs; opt-in shared-secret auth 2026-09-29 11:27:55 +02:00
index.js fix(telegram): relaunch polling on 409, drain on stop, detach slow cmds 2026-09-29 10:43:28 +02:00
messages.json docs: expand project, admin-panel and dev docs 2026-04-28 12:16:16 +02:00
package-lock.json chore(deps): resolve all npm audit vulnerabilities 2026-08-06 01:28:24 +02:00
package.json chore(deps): resolve all npm audit vulnerabilities 2026-08-06 01:28:24 +02:00
README.md docs: expand project, admin-panel and dev docs 2026-04-28 12:16:16 +02:00

BeamDefender

A multi-platform moderation, tipping, and blockchain-bridge bot for the Beam community — running on both Discord and Telegram with a web-based admin dashboard.

Features

Wallet & Tipping

  • Built-in Beam wallet per user — create addresses, deposit, withdraw, and check balances
  • /tip and /atip (anonymous) to send BEAM or any confidential asset to other users
  • Red envelopes — drop a claimable pot for others to grab
  • React-to-tip — tip a user by reacting to their message with an emoji
  • Price, halving, ATH/ATL, and asset info commands

Moderation

  • Spam detection — SimHash-based content similarity scoring with configurable auto-ban per platform
  • Spam whitelist — exempt trusted users from the detector
  • Imposter scan — flags Telegram users impersonating admins
  • Warnings — warn users with automatic 10-minute timeout
  • Mod notes — attach internal notes to users for mod context
  • Delete logger — log deleted messages to a staff channel with quick-action buttons (Mark as Spam / Ban)
  • Report — users can report messages via slash command or right-click context menu
  • Slowmode — set channel slowmode from a command
  • User rate limiting — detect message floods

Verification

  • Three configurable modes: off, always-on captcha, or join-only captcha
  • Works on both Discord and Telegram with per-entity settings

Discord ↔ Telegram Bridge

  • Bidirectional message relay — text, media, polls, stickers
  • Synced edits and deletes across platforms
  • Cross-platform spam checks on bridged messages
  • Per-channel bridge configuration via the dashboard

Tickets

  • Ticket system with a setup embed, create button, and auto-cleanup of stale tickets

Account Linking

  • Link Discord and Telegram accounts together
  • Linked users share wallet, ban status, and mod notes
  • BAR/dApp API for external wallet-signature-based linking

Admin Dashboard

  • Web UI for managing users, bans, spam records, bridges, verification, and controlboard settings
  • Charts and analytics
  • RBAC with viewer, admin, and dev roles
  • Audit log of admin actions
  • Login approval workflow

Controlboard

All major modules are feature-flagged and can be toggled at runtime without restarting.

Support

For support, open an issue or join our Telegram.