aboutsummaryrefslogtreecommitdiff
path: root/geldschieberbot.py
diff options
context:
space:
mode:
Diffstat (limited to 'geldschieberbot.py')
-rw-r--r--geldschieberbot.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/geldschieberbot.py b/geldschieberbot.py
index 4666acc..4274d32 100644
--- a/geldschieberbot.py
+++ b/geldschieberbot.py
@@ -126,7 +126,7 @@ def handle_input(inp):
if not_in_group:
continue
- w = body[0].split(' ')
+ w = body[0].lower().split(' ')
cmd = w[0]
@@ -225,6 +225,7 @@ def handle_input(inp):
except:
send("ERROR: amount musst be a number")
continue
+
if w[2] in name2num:
recipient = w[2]
else:
@@ -238,7 +239,7 @@ def handle_input(inp):
msg = ""
for p in parts.items():
- msg += p[0] + ": {}km = {}\n".format(p[1][0], p[1][1])
+ msg += p[0] + ": {}km = {}\n".format(p[1][0], to_euro(p[1][1]))
if p[0] != recipient:
if p[0] in name2num:
balance[recipient][p[0]] -= p[1][1]