diff --git a/Scheduling-Functions.md b/Scheduling-Functions.md index 97475cb..584233d 100644 --- a/Scheduling-Functions.md +++ b/Scheduling-Functions.md @@ -42,4 +42,18 @@ async def foo(): client.loop.create_task(foo()) ``` +When you're done setting everything up, the event loop must be running or things won't work. You can do this with: + +```python +client.run_until_disconnected() +``` + +or: + +```python +loop.run_forever() +``` + +--- + If you don't mind using other libraries, [`aiocron`](https://github.com/gawel/aiocron) is a good option. See https://crontab.guru/ to learn its time syntax. \ No newline at end of file