Skip to content

Commit

Permalink
Fixed a bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
HornCopper committed Sep 13, 2022
1 parent 694d8e0 commit 2ee25fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.dev
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
HOST=127.0.0.1
PORT=2333
COMMAND_START=["+"]
APSCHEDULER_AUTOSTART=true

[FastAPI]
fastapi_reload = true
3 changes: 2 additions & 1 deletion src/plugins/assistance/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,8 @@ async def _(event: GroupMessageEvent):
from nonebot_plugin_apscheduler import scheduler

@scheduler.scheduled_job("cron", minute="*/1")
async def get_group(bot: Bot):
async def get_group():
bot = nonebot.get_bot()
token = Config.jx3api_recruittoken
if token == None:
logger.info("Token is null. If you don't want to see this message, please remove in `src/plugins/assistance/__init__.py` from line 318.")
Expand Down

0 comments on commit 2ee25fc

Please sign in to comment.