New eventsub
This commit is contained in:
@@ -21,13 +21,14 @@ class TwitchBot(commands.Bot):
|
|||||||
super().__init__(
|
super().__init__(
|
||||||
token=access_token,
|
token=access_token,
|
||||||
web_server_adapter=adapter,
|
web_server_adapter=adapter,
|
||||||
|
eventsub_url=None, # Explicitly disable EventSub
|
||||||
prefix='!', # A prefix is required but won't be used for reading chat
|
prefix='!', # A prefix is required but won't be used for reading chat
|
||||||
initial_channels=[channel_name],
|
initial_channels=[channel_name],
|
||||||
# These are now required by twitchio
|
# These are required by twitchio for authentication
|
||||||
client_id=client_id,
|
client_id=client_id,
|
||||||
client_secret=client_secret,
|
client_secret=client_secret,
|
||||||
# The 'bot_id' is the Twitch ID of the user account the bot is running as
|
# The 'bot_id' is the Twitch ID of the user account the bot is running as
|
||||||
bot_id=bot_id, id=bot_id
|
id=bot_id
|
||||||
)
|
)
|
||||||
self.channel_name = channel_name
|
self.channel_name = channel_name
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user