cannawen / dota-gsi-discord-bot

Use Dota 2's Game State Integration API to make helpful announcements in a discord voice channel
MIT License
5 stars 2 forks source link

[chore] refactor slash commands to be more together #83

Closed cannawen closed 1 year ago

cannawen commented 1 year ago

Currently if you want to add a new slash command, you need to touch 3 different files. You should only have to touch one file ... probably go to that architecture in discord.js example where it dynamically loads the slash commands and all info is contained in one file

https://discordjs.guide/creating-your-bot/command-deployment.html#command-registration