Compare commits
2 Commits
750997f3cc
...
85be251b3f
Author | SHA1 | Date |
---|---|---|
Niels Simenon | 85be251b3f | |
Niels Simenon | 73117e7614 |
|
@ -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",
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue