feat(chat): support BanchoBot
This commit is contained in:
2
main.py
2
main.py
@@ -22,6 +22,7 @@ from app.router import (
|
||||
)
|
||||
from app.router.redirect import redirect_router
|
||||
from app.service.calculate_all_user_rank import calculate_user_rank
|
||||
from app.service.create_banchobot import create_banchobot
|
||||
from app.service.daily_challenge import daily_challenge_job
|
||||
from app.service.osu_rx_statistics import create_rx_statistics
|
||||
from app.service.pp_recalculate import recalculate_all_players_pp
|
||||
@@ -43,6 +44,7 @@ async def lifespan(app: FastAPI):
|
||||
await calculate_user_rank(True)
|
||||
init_scheduler()
|
||||
await daily_challenge_job()
|
||||
await create_banchobot()
|
||||
# on shutdown
|
||||
yield
|
||||
stop_scheduler()
|
||||
|
||||
Reference in New Issue
Block a user