Compare commits

...

2 Commits

Author SHA1 Message Date
Niels Simenon 3e685bd5a4 1.19.3 2022-11-01 05:31:07 +01:00
Niels Simenon 505b2449ba Added ~letsgo shortcut to the letters. 2022-11-01 05:31:05 +01:00
3 changed files with 5 additions and 4 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "schat2-clive",
"version": "1.19.2",
"version": "1.19.3",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "schat2-clive",
"version": "1.19.2",
"version": "1.19.3",
"license": "ISC",
"dependencies": {
"bhttp": "^1.2.8",

View File

@ -1,6 +1,6 @@
{
"name": "schat2-clive",
"version": "1.19.2",
"version": "1.19.3",
"description": "Game host for SChat 2-powered chat sites",
"main": "src/app.js",
"scripts": {

View File

@ -150,7 +150,7 @@ function onCommand(args, context) {
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
return;
}
@ -194,6 +194,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.`,
commands: ['letsgo'],
onCommand,
onMessage,
};