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