Add response
This commit is contained in:
parent
b37530c609
commit
fe2d124b40
1
bot.py
1
bot.py
|
@ -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))
|
||||
|
|
Reference in New Issue