Compare commits

...

2 Commits

Author SHA1 Message Date
Niels Simenon 85be251b3f 1.26.1 2023-04-11 00:46:42 +02:00
Niels Simenon 73117e7614 Changed conversation determination in chat. 2023-04-11 00:46:40 +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.26.0", "version": "1.26.1",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "schat2-clive", "name": "schat2-clive",
"version": "1.26.0", "version": "1.26.1",
"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.0", "version": "1.26.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

@ -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 && !context.room && !context.containsCommand; const isConversation = message.recipient === config.user.username && !message.type === 'whisper' && !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);