Transitioned all working games to Slash Commands (not Battle)

This commit is contained in:
ION606
2022-11-16 16:53:24 -05:00
parent 1324c3db8f
commit 1b1932015e
12 changed files with 348 additions and 217 deletions
+19 -11
View File
@@ -112,7 +112,7 @@ function registerCommands(bot) {
},
]
});
return resolve(true);
//Takes much longer, so it'll be the benchmark for when the Promise resolves
//#region GAMES
const gameOpts = require('./commands/games/gameCommandOptions.js');
@@ -120,18 +120,26 @@ return resolve(true);
name: 'game',
description: 'Play one of Selmer Bot\'s games!', //NOT APPLICABLE USING SUB COMMAND GROUPS???
// type: Constants.ApplicationCommandOptionTypes.SUB_COMMAND_GROUP,
options: gameOpts
}).then(() => { resolve(true); }).catch((err) => { reject(err); });
//#endregion
options: gameOpts,
dm_permission: false
}).then(() => {
if (!bot.inDebugMode) { return resolve(true); }
//#endregion
commands.create({
name: 'setup_embed',
description: 'Create a row of buttons for easier setup',
options: []
});
//#region Context Menus
commands.create({
name: "Temp",
type: 'USER'
});
//#region Context Menus
commands.create({
name: "Temp",
type: 'USER'
});
//#endregion
}).catch((err) => { reject(err); });
//#endregion
//#endregion
});
}