]> jfr.im git - erebus.git/commitdiff
add load OK checking/logging to bot statup module loading
authorzonidjan <redacted>
Mon, 4 Apr 2016 18:39:18 +0000 (13:39 -0500)
committerzonidjan <redacted>
Mon, 4 Apr 2016 18:39:18 +0000 (13:39 -0500)
erebus.py

index a25194321bade09df911bf96932cd9482a4ee400..b237347d27b73b68f06c21f045c84db449306ba3 100644 (file)
--- a/erebus.py
+++ b/erebus.py
@@ -257,8 +257,14 @@ def setup():
 
        autoloads = [mod for mod, yes in cfg.items('autoloads') if int(yes) == 1]
        for mod in autoloads:
-               print "Loading %s" % (mod)
-               ctlmod.load(main, mod)
+               print "Loading %s ... " % (mod),
+               modstatus = ctlmod.load(main, mod)
+               if not modstatus:
+                       print str(modstatus)
+               elif modstatus == True:
+                       print "OK"
+               else:
+                       print modstatus
 
        dbsetup()
        c = main.db.cursor()