Added ~letsgo shortcut to the letters.
This commit is contained in:
parent
2d48a18c16
commit
505b2449ba
|
@ -150,7 +150,7 @@ function onCommand(args, context) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (['start', 'go', 'auto', 'random'].includes(context.subcommand)) {
|
if (context.command === 'letsgo' || ['start', 'go', 'auto', 'random'].includes(context.subcommand)) {
|
||||||
start(context, Array.from({ length: config.letters.length }, () => (Math.random() < 0.55 ? 'c' : 'v')).join('')); // a slight bias towards consonants seems to give better boards
|
start(context, Array.from({ length: config.letters.length }, () => (Math.random() < 0.55 ? 'c' : 'v')).join('')); // a slight bias towards consonants seems to give better boards
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -194,6 +194,7 @@ function onMessage(message, context) {
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: 'Letters',
|
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.`,
|
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.`,
|
||||||
|
commands: ['letsgo'],
|
||||||
onCommand,
|
onCommand,
|
||||||
onMessage,
|
onMessage,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue