git://git.furryclan.net
/
furrycat
/
catbot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07e54a0
)
Handle common error putting commas in distance.
author
CMDR furrycat
<elite@furrycat.net>
Mon, 17 Oct 2016 07:22:20 +0000
(08:22 +0100)
committer
CMDR furrycat
<elite@furrycat.net>
Mon, 17 Oct 2016 07:22:20 +0000
(08:22 +0100)
bot.py
patch
|
blob
|
history
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)