From f513b92cc79cd6eb3636b7a6a00bcb1ff76d9a66 Mon Sep 17 00:00:00 2001 From: phxntxm Date: Wed, 19 Jul 2017 18:02:33 -0500 Subject: [PATCH] Use the correct lookup on server settings --- cogs/birthday.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/birthday.py b/cogs/birthday.py index 9b9593e..3bf38e5 100644 --- a/cogs/birthday.py +++ b/cogs/birthday.py @@ -55,9 +55,9 @@ class Birthday: bds = self.get_birthdays_for_server(server, today=True) for bd in bds: # Set our default to either the one set, or the default channel of the server - default_channel_id = servers.get('notifications', {}).get('default') or server.id + default_channel_id = s.get('notifications', {}).get('default') or server.id # If it is has been overriden by picarto notifications setting, use this - channel_id = servers.get('notifications', {}).get('birthdays') or default_channel_id + channel_id = s.get('notifications', {}).get('birthdays') or default_channel_id # Now get the channel based on that ID channel = server.get_channel(int(channel_id)) or server.default_channel try: