Skip to content

Commit 7b9ef16

Browse files
authored
Merge pull request #2 from Aqueuse/patch-2
update / simplify chat.py
2 parents 6923ee8 + f20b765 commit 7b9ef16

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

chat.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,11 @@ def __init__(self):
99

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

1414
@commands.command()
15-
async def hello(self, ctx: commands.Context):
16-
# Send a hello back!
17-
await ctx.send(f'Hello {ctx.author.name}!')
18-
1915
async def event_message(self, ctx: commands.Context):
20-
print(f"From {ctx.author.name}: {ctx.content}")
16+
print(f"{ctx.author.name} : {ctx.content}")
2117

2218
bot = Bot()
2319
bot.run()

0 commit comments

Comments
 (0)