]> jfr.im git - erebus.git/commitdiff
bot - add handler if command is not known
authorzonidjan <redacted>
Sat, 2 Sep 2017 23:47:33 +0000 (18:47 -0500)
committerzonidjan <redacted>
Sat, 2 Sep 2017 23:47:33 +0000 (18:47 -0500)
bot.py

diff --git a/bot.py b/bot.py
index 0018bad1350f2b8e2cfffdfbf24921a49e7f6e73..9bf8e0d092dbb5de4d64b7ac3db877151902448d 100644 (file)
--- a/bot.py
+++ b/bot.py
@@ -291,6 +291,8 @@ class Bot(object):
                                                curs.execute("UPDATE bots SET connected = 0")
                                                curs.close()
                                                raise e
+               else:
+                       self.msg(user, "I don't know that command.")
 
        def __debug_nomsg(self, target, msg):
                if int(self.parent.cfg.get('debug', 'nomsg', default=0)) == 1: