Add response

This commit is contained in:
Robert Miles 2018-07-26 16:06:17 -04:00
parent b37530c609
commit fe2d124b40
1 changed files with 1 additions and 0 deletions

1
bot.py
View File

@ -37,6 +37,7 @@ class AuditBot(teambot.Handler):
say_log("{} is auditing \"{}\"".format(nick,log(self._bot.bot_nick,text)),"!","green")
bbj.thread_reply(opts.get("thread_id"),opts.get("format").format(time.strftime("%Y-%m-%d %H:%M:%S"),nick,log(self._bot.bot_nick,text)))
# say_log(repr(r))
self.say(target,"{}: audited!".format(nick))
else:
say_log("{} is auditing \"{}\" but is not a sudoer!".format(nick,log(self._bot.bot_nick,text)),"X")
self.say(target,"{}: you aren't a sudoer!".format(nick))