Changed scheduler declaration
This commit is contained in:
parent
ef4e42fff0
commit
af04a7dce6
@ -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
|
||||||
|
|
||||||
|
2
main.py
2
main.py
@ -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,
|
||||||
|
@ -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)
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user