Compare commits

...

2 Commits

Author SHA1 Message Date
ThePendulum 56d8bd34be 1.5.15 2021-11-16 00:12:58 +01:00
ThePendulum 60c6f84702 Fixed playing a word without ongoing mash crashing bot. 2021-11-16 00:12:55 +01:00
3 changed files with 7 additions and 7 deletions

4
package-lock.json generated
View File

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

View File

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

View File

@ -172,13 +172,13 @@ function onCommand(args, context) {
return;
}
if (!word && !mash) {
context.sendMessage(`Start a mash with ${config.prefix}mash {length}`, context.room.id);
if (!word && mash) {
context.sendMessage(`The current mash is: **${mash.anagram}**`, context.room.id);
return;
}
if (!word && mash) {
context.sendMessage(`The current mash is: **${mash.anagram}**`, context.room.id);
if (!word || !mash) {
context.sendMessage(`Start a mash with ${config.prefix}mash {length}`, context.room.id);
return;
}