Compare commits

...
2 Commits
Author SHA1 Message Date
ThePendulum 529e8338d6 1.30.9 2026-09-13 21:58:56 +02:00
ThePendulum 9d77c948e2 Fixed ~duck crashing Clive because it's not an actual duck game command. 2026-09-13 21:58:54 +02:00
3 changed files with 8 additions and 3 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "schat2-clive", "name": "schat2-clive",
"version": "1.30.8", "version": "1.30.9",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "schat2-clive", "name": "schat2-clive",
"version": "1.30.8", "version": "1.30.9",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"better-sqlite3": "^8.3.0", "better-sqlite3": "^8.3.0",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "schat2-clive", "name": "schat2-clive",
"version": "1.30.8", "version": "1.30.9",
"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": {
+5
View File
@@ -56,6 +56,11 @@ function onCommand(args, context) {
return; return;
} }
if (!duck) {
// unrecognized command
return;
}
const hit = Math.random() > config.duck.missRatio; const hit = Math.random() > config.duck.missRatio;
const time = new Date().getTime() - duck.getTime(); const time = new Date().getTime() - duck.getTime();