adjust listener
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from twitchio.ext import commands
|
||||
import twitchio
|
||||
from twitchio.models import Message
|
||||
from twitchio.web import AiohttpAdapter
|
||||
|
||||
class TwitchBot(commands.Bot):
|
||||
@@ -31,7 +31,7 @@ class TwitchBot(commands.Bot):
|
||||
"""Called once when the bot goes online."""
|
||||
print(f"Listener ready for #{self.channel_name}")
|
||||
|
||||
async def event_message(self, message: twitchio.Message):
|
||||
async def event_message(self, message: Message):
|
||||
"""Runs every time a message is sent in chat."""
|
||||
# The 'echo' check is temporarily disabled to allow self-messaging for testing.
|
||||
# if message.echo:
|
||||
|
||||
Reference in New Issue
Block a user