|
|
||
|---|---|---|
| src | ||
| .gitignore | ||
| Makefile | ||
| README.md | ||
| config.exemple.toml | ||
| docker-compose.yaml | ||
| package.json | ||
| tsconfig.json | ||
| yarn.lock | ||
README.md
Discord Dropdown POC
A POC of a Discord bot using the dropdown capability
Requirement
How to install
- Clone the repo
- Copy the
config.exemple.tomland rename itconfig.toml - Launch the docker container with
make startordocker-compose up -d - Go into the docker container with
make shellordocker-compose exec discord-bot bash - Install the dependencies:
yarn install - 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.tsto 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.