Go to file
Aymeric GUERACAGUE 50559fab2b
📝 improvement -> discord token in env
2022-07-01 00:45:55 +02:00
src 🐛 listen all select menu 2022-07-01 00:37:06 +02:00
.gitignore command + select menu for role picker 2022-06-30 13:44:54 +02:00
Makefile 🎉 setup docker + sheweny + ts 2022-06-26 19:31:55 +02:00
README.md 📝 improvement -> discord token in env 2022-07-01 00:45:55 +02:00
config.exemple.toml 📝 complementary informations on configuration file 2022-07-01 00:44:00 +02:00
docker-compose.yaml 🎉 setup docker + sheweny + ts 2022-06-26 19:31:55 +02:00
package.json command + select menu for role picker 2022-06-30 13:44:54 +02:00
tsconfig.json 🎉 setup docker + sheweny + ts 2022-06-26 19:31:55 +02:00
yarn.lock command + select menu for role picker 2022-06-30 13:44:54 +02:00

README.md

Discord Dropdown POC

A POC of a Discord bot using the dropdown capability

Requirement

How to install

  1. Clone the repo
  2. Copy the config.exemple.toml and rename it config.toml
  3. Launch the docker container with make start or docker-compose up -d
  4. Go into the docker container with make shell or docker-compose exec discord-bot bash
  5. Install the dependencies: yarn install
  6. Compile typescript and run the bot with yarn dev

Improvement Way

  • Discord token should be in environment and not on configuration (security and semantic reason)
  • Sync configuration with currently send picker. /role-picker create [picker], /role-picker sync [picker] (if picker is omitted, resync all?)

Notes

  • Configuration file format is TOML. It is a minimal configuration file format that's easy to read due to obvious semantics. TOML is designed to map unambiguously to a hash table. TOML should be easy to parse into data structures in a wide variety of languages. Read src/config.ts to see all possibilities.

Contributions/License

This project has an AGPLv3 license. This project use the Sheweny framework with discord.js underlying and BinaryMuse/toml-node for configuration parsing.