From e8d70769f18b4aa5b5ab22ec040a4befe35bfb53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=B9=E3=82=BF=E3=83=BC=E3=82=AF=E3=82=AE=E3=83=A3?= =?UTF-8?q?=E3=83=B3=E3=82=B0?= Date: Wed, 3 Feb 2021 22:28:03 +0530 Subject: [PATCH] Updated Scheduling Functions (markdown) --- Scheduling-Functions.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Scheduling-Functions.md b/Scheduling-Functions.md index 96bebc1..8f5f668 100644 --- a/Scheduling-Functions.md +++ b/Scheduling-Functions.md @@ -60,22 +60,22 @@ If you don't mind using other libraries, [`aiocron`](https://github.com/gawel/ai --- -You Can Also Use [`apscheduler`](https://github.com/agronholm/apscheduler), Which is Much Simpler And Much Efficient. +You can also use [`apscheduler`](https://github.com/agronholm/apscheduler), which is much simpler and much efficient. -Here is A Example For Running A Job (Function) Everyday at 6am. +Here is a example for running a job (Function) everyday at 6am. ```python from apscheduler.schedulers.asyncio import AsyncIOScheduler async def greet_me(): - print("Good Morning Midhun") + print("Good morning Midhun") scheduler = AsyncIOScheduler() scheduler.add_job(greet_me, trigger="cron", hour=06) scheduler.start() ``` -You Can Also Run A Job At Specific intervals, Here is A Example For it. +You can also run a job at specific intervals, here is a example for it. ```python from apscheduler.schedulers.asyncio import AsyncIOScheduler @@ -87,8 +87,8 @@ scheduler = AsyncIOScheduler() scheduler.add_job(this_will_run_at_every_one_hour, 'interval', minutes=60) scheduler.start() ``` -You Can Also Set Custom TimeZones And Also Use DataBases For Running These Functions. +You can also set custom Time zone and also use database for running these functions. -I Like This Because it's More Advance And Better. +This is more advance And works smoothly with telethon. -Read More About This From [`Here`](https://apscheduler.readthedocs.io/en/stable) \ No newline at end of file +Read more about this from [`Here`](https://apscheduler.readthedocs.io/en/stable) \ No newline at end of file