From dc7528e8b87b95863b4b428717338d025bf3efb6 Mon Sep 17 00:00:00 2001 From: Bryce Chidester Date: Mon, 8 Jun 2015 14:02:19 -0700 Subject: [PATCH] Update to work with Err 2.2.1 Update with the revised Err api. getType/getBody/getFrom have been deprecated in favour of properties type/body/frm. --- arrrrrBot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arrrrrBot.py b/arrrrrBot.py index 4e9149c..b7db4aa 100644 --- a/arrrrrBot.py +++ b/arrrrrBot.py @@ -63,11 +63,11 @@ def peekpoke(self, mess, args): def hiersprichtgott(self, mess, args): self.send(CHATROOM_PRESENCE[0], args, message_type='groupchat') - def callback_message(self, conn, mess): - firstword = mess.getBody() + def callback_message(self, mess): + firstword = mess.body try: firstword = firstword[:firstword.index(' ')] except ValueError: pass if firstword in self: - self.send(mess.getFrom(), self[firstword], message_type=mess.getType()) + self.send(mess.frm, self[firstword], message_type=mess.type)