From 940e2464f82deb4871f1a8548a873c498e41c785 Mon Sep 17 00:00:00 2001 From: CMDR furrycat Date: Mon, 17 Oct 2016 08:22:20 +0100 Subject: [PATCH] Handle common error putting commas in distance. --- bot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bot.py b/bot.py index dda1e5e..3e1cca7 100755 --- a/bot.py +++ b/bot.py @@ -696,6 +696,8 @@ def do_commands(message, command, raw, non_admin): def do_edi(message, command, raw, p): if command == 'close_to' and not '-m' in raw: raw = 'close_to' + if command == 'distance': + raw = raw.replace(',', '') log.info(raw) yield from client.send_typing(message.channel) p.sendline(raw) -- 2.7.4