🎨 修复bug,移除plugins文件夹

This commit is contained in:
HibiKier
2024-08-29 22:01:34 +08:00
parent e10fee74b3
commit 625f17a708
146 changed files with 580 additions and 18320 deletions
+5 -5
View File
@@ -1,21 +1,21 @@
import asyncio
from nonebot.adapters import Bot
from ruamel.yaml.comments import CommentedSeq
from nonebot_plugin_session import EventSession
# from nonebot.adapters.discord import Bot as DiscordBot
# from nonebot.adapters.dodo import Bot as DodoBot
# from nonebot.adapters.kaiheila import Bot as KaiheilaBot
from nonebot.adapters.onebot.v11 import Bot as v11Bot
from nonebot.adapters.onebot.v12 import Bot as v12Bot
from nonebot_plugin_session import EventSession
from ruamel.yaml.comments import CommentedSeq
from zhenxun.services.log import logger
class WithdrawManager:
_data = {}
_data = {} # noqa: RUF012
_index = 0
@classmethod
@@ -34,7 +34,7 @@ class WithdrawManager:
return True
if withdraw_time[1] == 1 and (session.id2 or session.id3):
return True
if withdraw_time[1] == 0 and not (session.id2 or session.id3):
if withdraw_time[1] == 0 and not session.id2 and not session.id3:
return True
return False
@@ -82,7 +82,7 @@ class WithdrawManager:
if time:
gid = None
_time = 1
if isinstance(time, (tuple, CommentedSeq)):
if isinstance(time, tuple | CommentedSeq):
if time[0] == 0:
return
if session: