From: CMDR furrycat Date: Mon, 17 Oct 2016 07:22:20 +0000 (+0100) Subject: Handle common error putting commas in distance. X-Git-Url: http://git.furryclan.net/?a=commitdiff_plain;h=940e2464f82deb4871f1a8548a873c498e41c785;p=furrycat%2Fcatbot.git Handle common error putting commas in distance. --- 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)