aboutsummaryrefslogtreecommitdiff
path: root/geldschieberbot.py
diff options
context:
space:
mode:
Diffstat (limited to 'geldschieberbot.py')
-rw-r--r--geldschieberbot.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/geldschieberbot.py b/geldschieberbot.py
index 15aa73f..a1209dd 100644
--- a/geldschieberbot.py
+++ b/geldschieberbot.py
@@ -140,6 +140,10 @@ def handle_input(inp):
send("ERROR: amount musst be a number")
continue
+ if amount < 0:
+ send("ERROR: amount must be positiv")
+ continue
+
if w[0] == "!zieh":
amount *= -1