From 684002831f8879546dd3739a88f4eb2fea2e5be4 Mon Sep 17 00:00:00 2001 From: Jordan Doyle Date: Sun, 30 Jul 2017 07:25:48 +0100 Subject: [PATCH] Log replies from the bot --- dave/dave.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dave/dave.py b/dave/dave.py index 9ced8c8..ca00757 100644 --- a/dave/dave.py +++ a/dave/dave.py @@ -105,6 +105,11 @@ if command == "INVITE": self.join(params[1]) + def msg(self, user, message, length=None): + """Override msg() to log what the bot says""" + log.msg("<{}> {}".format(self.nickname, message)) + super(Dave, self).msg(user, message, length) + def reply(self, source, sender, msg): if source == sender: # responding directly back to the user so don't tag them -- rgit 0.1.3