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

View File

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

View File

@ -281,7 +281,7 @@ async function onCommand(args, context, isConversation) {
}
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) {
onCommand([message.body.replace(promptRegex, '').trim()], context, isConversation);