Skip to content

Commit f605286

Browse files
authored
Fix examples in routines
1 parent bd9a04c commit f605286

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

twitchio/ext/routines/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class Routine:
6767
6868
# This routine will run every minute until stopped or canceled.
6969
70-
@routines.routine(datetime.timedelta(minutes=1))
70+
@routines.routine(delta=datetime.timedelta(minutes=1))
7171
async def my_routine() -> None:
7272
print("Hello World!")
7373
@@ -77,7 +77,7 @@ async def my_routine() -> None:
7777
7878
# Pass some arguments to a routine...
7979
80-
@routines.routine(datetime.timedelta(minutes=1))
80+
@routines.routine(delta=datetime.timedelta(minutes=1))
8181
async def my_routine(hello: str) -> None:
8282
print(f"Hello {hello}")
8383
@@ -87,7 +87,7 @@ async def my_routine(hello: str) -> None:
8787
8888
# Only run the routine three of times...
8989
90-
@routines.routine(datetime.timedelta(minutes=1), iterations=3)
90+
@routines.routine(delta=datetime.timedelta(minutes=1), iterations=3)
9191
async def my_routine(hello: str) -> None:
9292
print(f"Hello {hello}")
9393

0 commit comments

Comments
 (0)