This repository was archived by the owner on Jan 13, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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:
9292With * 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 `
You can’t perform that action at this time.
0 commit comments