Compare commits

...

2 Commits

Author SHA1 Message Date
ThePendulum 2bc9a761e5 1.12.1 2022-10-22 01:33:53 +02:00
ThePendulum 954043b16a Added :commands as standard help subcommand alias. 2022-10-22 01:33:50 +02:00
3 changed files with 4 additions and 4 deletions

4
package-lock.json generated
View File

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

View File

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

View File

@ -215,7 +215,7 @@ function onMessage(message, bot, games) {
return; return;
} }
if (game && game.help && subcommand === 'help') { if (game && game.help && ['help', 'commands'].includes(subcommand)) {
game.sendMessage(game.help, room.id, { styleCommands: true }); game.sendMessage(game.help, room.id, { styleCommands: true });
if (game.blockHelp !== false) { if (game.blockHelp !== false) {