Skip to content

Commit

Permalink
Fixed command deployer.
Browse files Browse the repository at this point in the history
  • Loading branch information
moonstar-x committed Mar 26, 2022
1 parent 7fcfac0 commit ca465d8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "discord-tts-bot",
"version": "4.1.0",
"version": "4.1.1",
"description": "A simple Discord TTS Bot that uses the Google Translate TTS API.",
"main": "./src/app.js",
"scripts": {
Expand Down
8 changes: 5 additions & 3 deletions src/command-deployer.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,17 @@ const client = new ExtendedClient({
client.registry
.registerGroups([
['all-tts', 'All TTS Commands'],
['amazon-tts', 'Amazon TTS Commands'],
['config', 'Configuration Commands'],
['google-tts', 'Google TTS Commands'],
['other-tts', 'Other TTS Commands'],
['misc', 'Miscellaneous Commands']
['misc', 'Miscellaneous Commands'],
['ms-tts', 'Microsoft TTS Commands']
])
.registerCommandsIn(path.join(__dirname, './commands'));
.registerCommandsIn(path.join(__dirname, './commands/main'));

if (config.get('ENABLE_TTS_CHANNELS')) {
client.registry.registerCommandsIn(path.join(__dirname, './channel-tts'));
client.registry.registerCommandsIn(path.join(__dirname, './commands/optional/channel-tts'));
}

client.on('ready', async() => {
Expand Down

0 comments on commit ca465d8

Please sign in to comment.