From 9d77c948e254d4e1b5f4e896851a79898ac11308 Mon Sep 17 00:00:00 2001 From: ThePendulum Date: Sun, 13 Sep 2026 21:58:54 +0200 Subject: [PATCH] Fixed ~duck crashing Clive because it's not an actual duck game command. --- src/games/duck.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/games/duck.js b/src/games/duck.js index 8e1698a..cd8b56f 100755 --- a/src/games/duck.js +++ b/src/games/duck.js @@ -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();