summaryrefslogtreecommitdiff
path: root/abot.py
diff options
context:
space:
mode:
authorjomo <github@jomo.tv>2014-07-14 00:56:46 +0200
committerjomo <github@jomo.tv>2014-07-14 00:56:46 +0200
commitc9763953d46967d570eee7962f277012419f8d7d (patch)
treebfd3abac779e6a9831e2b6741e49dc0dd7a534d0 /abot.py
parent2a0063560601e99960662cc554f1d438baca09ec (diff)
can't call function before definition
Diffstat (limited to 'abot.py')
-rw-r--r--abot.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/abot.py b/abot.py
index 9701b53..348aed1 100644
--- a/abot.py
+++ b/abot.py
@@ -5,8 +5,6 @@ from re import compile as reg_compile
answers_filename = "plugins/redstoner-utils.py.dir/files/abot.json"
answers = []
-load_answers()
-
def load_answers():
global answers
@@ -61,4 +59,7 @@ def onChat(event):
msg(sender, answer["message"] + "\n ")
event.setCancelled(True)
log("(hidden) %s: '%s'" % (sender.getName(), message))
- break \ No newline at end of file
+ break
+
+
+load_answers() \ No newline at end of file