fix : 移除dev

This commit is contained in:
Wbucket
2026-09-30 16:23:55 +08:00
parent cac4856f2f
commit 5db01d429d
+7 -9
View File
@@ -149,12 +149,11 @@ if appid is None or secret_bot is None :
logger.info("登录账号:"+appid)
# bobby Session
if not dev is None:
if bbyAccount is None or bbyPasswd is None :
if bbyAccount is None or bbyPasswd is None :
raise SystemError("未找到账密配置")
if appid is None or secret_bot is None :
if appid is None or secret_bot is None :
raise SystemError("未找到bot配置")
bobby = bobbySession(bbyAccount,bbyPasswd)
bobby = bobbySession(bbyAccount,bbyPasswd)
async def main(ws:djtuWebsocket, *args: Any, **kwargs: Any) -> None:
async with ws as ws:
@@ -177,11 +176,10 @@ ws = djtuWebsocket(Intents_ex(public_messages=True,member_event=True))
# 启动mcwatcher线程
def pushQuene(cont:str):
ws.q.put(cont)
if not dev is None :
Thread(target=watcher.MCWatcher,name="watcher",kwargs={
"hookfunction":pushQuene,
"logging":logger
}).start()
Thread(target=watcher.MCWatcher,name="watcher",kwargs={
"hookfunction":pushQuene,
"logging":logger
}).start()
# bot线程运行
asyncio.run(main(ws,appid=appid,secret=secret_bot))