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

@@ -194,7 +194,7 @@ function onCommand(args, context) {
}
if (!word || !mash) {
context.sendMessage(`Start a mash with ${config.prefix}mash {length}`, context.room.id);
context.sendMessage(`Start a mash with ${config.prefix}mash [length]`, context.room.id);
return;
}
@@ -214,4 +214,5 @@ module.exports = {
commands: ['mash', ...defineCommands, ...resolveCommands],
onCommand,
onMessage,
help: `Resolve the anagram. Get a new mash with ${config.prefix}mash [length], look up definitions with ${config.prefix}define [word], resolve an anagram (that's not currently in play) with ${config.prefix}solve [anagram].`,
};