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) logger.info("登录账号:"+appid)
# bobby Session # 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("未找到账密配置") raise SystemError("未找到账密配置")
if appid is None or secret_bot is None : if appid is None or secret_bot is None :
raise SystemError("未找到bot配置") raise SystemError("未找到bot配置")
bobby = bobbySession(bbyAccount,bbyPasswd) bobby = bobbySession(bbyAccount,bbyPasswd)
async def main(ws:djtuWebsocket, *args: Any, **kwargs: Any) -> None: async def main(ws:djtuWebsocket, *args: Any, **kwargs: Any) -> None:
async with ws as ws: async with ws as ws:
@@ -177,11 +176,10 @@ ws = djtuWebsocket(Intents_ex(public_messages=True,member_event=True))
# 启动mcwatcher线程 # 启动mcwatcher线程
def pushQuene(cont:str): def pushQuene(cont:str):
ws.q.put(cont) ws.q.put(cont)
if not dev is None : Thread(target=watcher.MCWatcher,name="watcher",kwargs={
Thread(target=watcher.MCWatcher,name="watcher",kwargs={ "hookfunction":pushQuene,
"hookfunction":pushQuene, "logging":logger
"logging":logger }).start()
}).start()
# bot线程运行 # bot线程运行
asyncio.run(main(ws,appid=appid,secret=secret_bot)) asyncio.run(main(ws,appid=appid,secret=secret_bot))