Added help commands.

This commit is contained in:
2022-10-22 01:23:11 +02:00
parent 73646482c9
commit cd133bb8bc
9 changed files with 63 additions and 16 deletions

View File

@@ -145,11 +145,6 @@ function onCommand(args, context) {
return;
}
if (['help', 'commands'].includes(context.subcommand)) {
context.sendMessage('Make the longest word using the available letters. To pick the letters, say con(sonant), vow(el) or supply multiple: CCCCCVVVV. Available subcommands: :stop', context.room.id);
return;
}
if (!context.subcommand) {
start(context);
}
@@ -188,6 +183,7 @@ function onMessage(message, context) {
module.exports = {
name: 'Letters',
help: `Make the longest word from the ${config.letters.length} letters on the board. Start with ${config.prefix}letters, and fill the board by selecting a vow(el), a con(sonant), or multiple at once like CCVVCCVVC.`,
onCommand,
onMessage,
};