Skip to content
This repository was archived by the owner on Jan 13, 2024. It is now read-only.

Commit a1e4359

Browse files
authored
Merge pull request #13 from DirectiveAthena/AndreasSas-patch-1
Update README.md
2 parents 5a90fb2 + 9a86876 commit a1e4359

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ class newBot(AthenaTwitchBot.TwitchBot):
4242
# A command is only ran when it is invoked by a user in chat
4343
# In the following case this would be by typing "!ping" in chat
4444
@AthenaTwitchBot.command_method(name="ping")
45-
def command_ping(self, context: AthenaTwitchBot.TwitchMessageContext):
45+
def command_ping(self, context: AthenaTwitchBot.TwitchContext):
4646
context.reply("pong!") # a "context.reply" function will reply to the user whi invoked the command
4747

4848
# - Task -
4949
# A task is run automatically every "delay" amount of seconds
5050
# In the following case, the method will be run every minute
5151
# The "wait_before" kwarg defines if the asyncio.sleep runs before or after the first call of the callback
5252
@AthenaTwitchBot.scheduled_task_method(delay=60, wait_before=True)
53-
def task_post_github(self, context: AthenaTwitchBot.TwitchMessageContext):
53+
def task_post_github(self, context: AthenaTwitchBot.TwitchContext):
5454
context.write(f"This bot is made possible by: https://github.com/DirectiveAthena/AthenaTwitchBot")
5555

5656
# --- Main function ---
@@ -92,4 +92,4 @@ Project files can be found at:
9292
With *No Dependency*, the standard library is not counted as a dependency
9393

9494
---
95-
Made By Andreas Sas,` 2022`
95+
Made By Andreas Sas,` 2022`

0 commit comments

Comments
 (0)