simple bot embedding a message in a specific channel and some more random things
  • TypeScript 94%
  • Nix 6%
Find a file
2026-06-30 18:07:00 +02:00
commands 1.6.0: migrate bot administration to slash commands 2026-06-11 12:14:00 +02:00
events show author for each context message in joke embed 2026-06-30 18:07:00 +02:00
.env.example 1.1.1: .env example, cast channel to TextChannel 2026-05-22 13:06:12 +02:00
.envrc add devshell with flake and direnv 2026-06-02 08:14:33 +02:00
.gitignore ignore .direnv/ 2026-06-30 17:56:11 +02:00
flake.lock add devshell with flake and direnv 2026-06-02 08:14:33 +02:00
flake.nix add devshell with flake and direnv 2026-06-02 08:14:33 +02:00
main.ts 1.6.1: breakup main.ts in smaller files in event, smarter filenames 2026-06-11 12:37:27 +02:00
package-lock.json show author for each context message in joke embed 2026-06-30 18:07:00 +02:00
package.json show author for each context message in joke embed 2026-06-30 18:07:00 +02:00
README.md 1.6.1: breakup main.ts in smaller files in event, smarter filenames 2026-06-11 12:37:27 +02:00
settings.json 1.6.1: breakup main.ts in smaller files in event, smarter filenames 2026-06-11 12:37:27 +02:00
settings.ts 1.6.0: migrate bot administration to slash commands 2026-06-11 12:14:00 +02:00
slashManager.ts 1.6.0: migrate bot administration to slash commands 2026-06-11 12:14:00 +02:00
types.ts 1.6.0: migrate bot administration to slash commands 2026-06-11 12:14:00 +02:00

discord-vanne

Discord bot that automatically forwards messages (as embeds) to a "vannes" ("jokes" in french) channel when they receive enough reactions, and some other random things.

How it works

  • When a message receives a set number of your valid emoji reactions, it is automatically posted as an embed in the vannes channel
  • Messages posted in the vannes channel automatically receive both vote emojis (valid and notValid)
  • Messages posted in the love channel automatically receive a reaction
  • The bot can be configured per-server using slash commands
  • Commands are restricted to members with a configured "bot manager" role, or Administrators

Admin commands

Command Description
/set channel_vanne: #channel Set the vannes channel
/set channel_admin: #channel Set the admin channel
/set channel_love: #channel Set the love channel
/set emoji_valid: <:name:id> Set the "valid" emoji
/set emoji_not_valid: <:name:id> Set the "not valid" emoji
/set emoji_loading: <:name:id> Set the loading emoji
/set min_reaction_number: number Minimum number of reactions to forward a message
/set bot_manager_role: @role Role allowed to manage the bot
/show_settings Show the current configuration
/ping Replies with Pong

/set accepts any combination of options at once.

Setup

git clone https://github.com/e-v-o-l-v-e/bot-discord-vanne-valide.git bot-vanne
cd bot-vanne
npm install

Create a .env file at the root dir:

DISCORD_TOKEN=your_bot_token_here
APP_ID=your_application_id_here

Slash commands are automatically registered with Discord on startup.

Run

node main.ts