Handle common error putting commas in distance.
authorCMDR furrycat <elite@furrycat.net>
Mon, 17 Oct 2016 07:22:20 +0000 (08:22 +0100)
committerCMDR furrycat <elite@furrycat.net>
Mon, 17 Oct 2016 07:22:20 +0000 (08:22 +0100)
bot.py

diff --git a/bot.py b/bot.py
index dda1e5e..3e1cca7 100755 (executable)
--- 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)