vocality-org / vocality

Plugin based discord bot
https://vocality-landing-page.now.sh/
MIT License
6 stars 0 forks source link

Rewrite CommandHandler #4

Closed KaindlJulian closed 5 years ago

KaindlJulian commented 5 years ago

Resources

KaindlJulian commented 5 years ago

Commands are dynamically added to our BotClient. Current implementation uses Typescript modules and a barrel file (index.ts) for all commands which then get imported and we add a new instance of each Command to the Collection.

This solution works fine, hence the close, but if one forgets to add a new commands class to the barrel file it wont be added to the collection.