author | Jordan Doyle <jordan@doyle.wf> | 2017-07-30 7:25:48.0 +01:00:00 |
---|---|---|
committer | Jordan Doyle <jordan@doyle.wf> | 2017-07-30 7:25:48.0 +01:00:00 |
commit | 684002831f8879546dd3739a88f4eb2fea2e5be4 [patch] |
|
tree | e88cafb71589032447ca334d9c2eb2384d45bbee |
|
parent | f39a69cb80acffad16653b5960cf2738f552a640 |
|
download | 684002831f8879546dd3739a88f4eb2fea2e5be4.tar.gz |
Log replies from the bot
Diff
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