Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,11 @@ def __init__(self):

async def event_ready(self):
# We are logged in and ready to chat and use commands...
print(f'Connected on {self.nick} with success ! - Twitch Bot')
print(f'Hello {self.nick}')

@commands.command()
async def hello(self, ctx: commands.Context):
# Send a hello back!
await ctx.send(f'Hello {ctx.author.name}!')

async def event_message(self, ctx: commands.Context):
print(f"From {ctx.author.name}: {ctx.content}")
print(f"{ctx.author.name} : {ctx.content}")

bot = Bot()
bot.run()