Compare commits
2 Commits
83a18e9377
...
5ec5711288
Author | SHA1 | Date |
---|---|---|
|
5ec5711288 | |
|
c4c2fa8472 |
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "schat2-clive",
|
"name": "schat2-clive",
|
||||||
"version": "1.12.2",
|
"version": "1.12.3",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "schat2-clive",
|
"name": "schat2-clive",
|
||||||
"version": "1.12.2",
|
"version": "1.12.3",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bhttp": "^1.2.8",
|
"bhttp": "^1.2.8",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "schat2-clive",
|
"name": "schat2-clive",
|
||||||
"version": "1.12.2",
|
"version": "1.12.3",
|
||||||
"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": {
|
||||||
|
|
|
@ -151,7 +151,7 @@ function onCommand(args, context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function onMessage(message, context) {
|
function onMessage(message, context) {
|
||||||
const game = games.get(context.room.id);
|
const game = games.get(context.room?.id);
|
||||||
|
|
||||||
if (message.type !== 'message' || context.user?.id === config.user?.id) { // stop listening to yourself
|
if (message.type !== 'message' || context.user?.id === config.user?.id) { // stop listening to yourself
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue