Added help commands.
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user