Fix issue with last refactoring

This commit is contained in:
OK 2023-04-13 16:16:31 +02:00
parent b0f2f2f6e1
commit 79e95ab06c

View File

@ -43,8 +43,8 @@ class FjerkroaBot(commands.Bot):
self.aichannels = {chan_name: AIResponder(self.config, chan_name) for chan_name in self.config['additional-responders']}
def init_channels(self):
self.staff_channel = self.fetch_channel_by_name(self.config['staff-channel'], no_ignore=True)
self.welcome_channel = self.fetch_channel_by_name(self.config['welcome-channel'], no_ignore=True)
self.staff_channel = self.channel_by_name(self.config['staff-channel'], no_ignore=True)
self.welcome_channel = self.channel_by_name(self.config['welcome-channel'], no_ignore=True)
async def on_ready(self):
self.init_channels()