Skip to content

Commit

Permalink
Fix examples in routines
Browse files Browse the repository at this point in the history
  • Loading branch information
EvieePy authored Dec 11, 2024
1 parent bd9a04c commit f605286
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions twitchio/ext/routines/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class Routine:
# This routine will run every minute until stopped or canceled.
@routines.routine(datetime.timedelta(minutes=1))
@routines.routine(delta=datetime.timedelta(minutes=1))
async def my_routine() -> None:
print("Hello World!")
Expand All @@ -77,7 +77,7 @@ async def my_routine() -> None:
# Pass some arguments to a routine...
@routines.routine(datetime.timedelta(minutes=1))
@routines.routine(delta=datetime.timedelta(minutes=1))
async def my_routine(hello: str) -> None:
print(f"Hello {hello}")
Expand All @@ -87,7 +87,7 @@ async def my_routine(hello: str) -> None:
# Only run the routine three of times...
@routines.routine(datetime.timedelta(minutes=1), iterations=3)
@routines.routine(delta=datetime.timedelta(minutes=1), iterations=3)
async def my_routine(hello: str) -> None:
print(f"Hello {hello}")
Expand Down

0 comments on commit f605286

Please sign in to comment.