Move Twitch adapter configuration.
This commit is contained in:
@@ -29,10 +29,7 @@ class Bot(commands.Bot):
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
# Whether we should do eventsub via webhooks or websockets
|
||||
if config.bot.get('eventsub_secret', None):
|
||||
self.using_webhooks = True
|
||||
else:
|
||||
self.using_webhooks = False
|
||||
self.using_webhooks = kwargs.get('using_webhooks', False)
|
||||
|
||||
self.config = config
|
||||
self.dbconn = dbconn
|
||||
|
||||
Reference in New Issue
Block a user