Fixed ~duck crashing Clive because it's not an actual duck game command.

This commit is contained in:
ThePendulum
2026-09-13 21:58:54 +02:00
parent 59dd7c793a
commit 9d77c948e2
+5
View File
@@ -56,6 +56,11 @@ function onCommand(args, context) {
return;
}
if (!duck) {
// unrecognized command
return;
}
const hit = Math.random() > config.duck.missRatio;
const time = new Date().getTime() - duck.getTime();