diff --git a/cogs/admin.py b/cogs/admin.py index 4946fa1..a8adbdf 100644 --- a/cogs/admin.py +++ b/cogs/admin.py @@ -18,7 +18,7 @@ from libbot.pycord.classes import PycordBot from libbot.sync import config_get as sync_config_get from enums import Color -from modules.scheduled import scheduler +from modules.scheduler import scheduler from modules.utils_sync import guild_name from modules.waifu_pics import waifu_pics diff --git a/main.py b/main.py index a2c8177..50b4093 100644 --- a/main.py +++ b/main.py @@ -7,7 +7,7 @@ from libbot import config_get from libbot.sync import config_get as sync_config_get from modules.client import client -from modules.scheduled import scheduler +from modules.scheduler import scheduler logging.basicConfig( level=logging.INFO, diff --git a/modules/client.py b/modules/client.py index d12e340..926632b 100644 --- a/modules/client.py +++ b/modules/client.py @@ -1,8 +1,10 @@ from discord import Intents from libbot.pycord.classes import PycordBot +from modules.scheduler import scheduler + intents: Intents = Intents().all() intents.members = True -client: PycordBot = PycordBot(intents=intents) +client: PycordBot = PycordBot(intents=intents, scheduler=scheduler) diff --git a/modules/scheduled.py b/modules/scheduler.py similarity index 100% rename from modules/scheduled.py rename to modules/scheduler.py diff --git a/requirements.txt b/requirements.txt index e3d96e8..a4cce88 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ aiofiles~=24.1.0 -apscheduler~=3.11.0 +apscheduler>=3.10.0 async_pymongo==0.1.11 libbot[speed,pycord]==3.2.3 ujson~=5.10.0