From 7ff8529092273a27ebe3b6eef788437131260ce7 Mon Sep 17 00:00:00 2001 From: chee Date: Mon, 28 Mar 2016 12:53:22 +0100 Subject: [PATCH] add hacky ignore that nobody is happy with --- bot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bot.py b/bot.py index e4b0cd3..4878617 100755 --- a/bot.py +++ b/bot.py @@ -22,6 +22,10 @@ def on_pubmsg(self, c, e): self.message(e, e.arguments[0]) def message(self, e, msg): + user = e.source.split('!')[0] + ignore = config('ignore').split(' ') + if (user in ignore): + return for mod in os.listdir('mods'): try: result = subprocess.check_output(['mods/' + mod, msg])