Compare commits

..

No commits in common. "85be251b3fe9acc9625d1ace3b1856527c0f190d" and "750997f3cc60ffe031a2a57e52b1922b8467a91f" have entirely different histories.

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.26.1", "version": "1.26.0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "schat2-clive", "name": "schat2-clive",
"version": "1.26.1", "version": "1.26.0",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"better-sqlite3": "^8.3.0", "better-sqlite3": "^8.3.0",

View File

@ -1,6 +1,6 @@
{ {
"name": "schat2-clive", "name": "schat2-clive",
"version": "1.26.1", "version": "1.26.0",
"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

@ -281,7 +281,7 @@ async function onCommand(args, context, isConversation) {
} }
function onMessage(message, context) { function onMessage(message, context) {
const isConversation = message.recipient === config.user.username && !message.type === 'whisper' && !context.containsCommand; const isConversation = message.recipient === config.user.username && !context.room && !context.containsCommand;
if (promptRegex.test(message.body) || isConversation) { if (promptRegex.test(message.body) || isConversation) {
onCommand([message.body.replace(promptRegex, '').trim()], context, isConversation); onCommand([message.body.replace(promptRegex, '').trim()], context, isConversation);