Changed scheduler declaration

This commit is contained in:
kku 2024-12-16 20:59:10 +01:00
parent ef4e42fff0
commit af04a7dce6
5 changed files with 6 additions and 4 deletions

View File

@ -18,7 +18,7 @@ from libbot.pycord.classes import PycordBot
from libbot.sync import config_get as sync_config_get from libbot.sync import config_get as sync_config_get
from enums import Color from enums import Color
from modules.scheduled import scheduler from modules.scheduler import scheduler
from modules.utils_sync import guild_name from modules.utils_sync import guild_name
from modules.waifu_pics import waifu_pics from modules.waifu_pics import waifu_pics

View File

@ -7,7 +7,7 @@ from libbot import config_get
from libbot.sync import config_get as sync_config_get from libbot.sync import config_get as sync_config_get
from modules.client import client from modules.client import client
from modules.scheduled import scheduler from modules.scheduler import scheduler
logging.basicConfig( logging.basicConfig(
level=logging.INFO, level=logging.INFO,

View File

@ -1,8 +1,10 @@
from discord import Intents from discord import Intents
from libbot.pycord.classes import PycordBot from libbot.pycord.classes import PycordBot
from modules.scheduler import scheduler
intents: Intents = Intents().all() intents: Intents = Intents().all()
intents.members = True intents.members = True
client: PycordBot = PycordBot(intents=intents) client: PycordBot = PycordBot(intents=intents, scheduler=scheduler)

View File

@ -1,5 +1,5 @@
aiofiles~=24.1.0 aiofiles~=24.1.0
apscheduler~=3.11.0 apscheduler>=3.10.0
async_pymongo==0.1.11 async_pymongo==0.1.11
libbot[speed,pycord]==3.2.3 libbot[speed,pycord]==3.2.3
ujson~=5.10.0 ujson~=5.10.0