forked from bot/app
删除无用的 print
This commit is contained in:
parent
4c65a308d6
commit
10c383d66a
@ -17,12 +17,10 @@ def init(config: dict):
|
|||||||
nonebot.logger.info("Satori clients already set in environment variable, skip.")
|
nonebot.logger.info("Satori clients already set in environment variable, skip.")
|
||||||
os.environ["SATORI_CLIENTS"] = json.dumps(satori_config.get("hosts", []), ensure_ascii=False)
|
os.environ["SATORI_CLIENTS"] = json.dumps(satori_config.get("hosts", []), ensure_ascii=False)
|
||||||
config['satori_clients'] = satori_config.get("hosts", [])
|
config['satori_clients'] = satori_config.get("hosts", [])
|
||||||
print(json.dumps(satori_config.get("hosts", []), ensure_ascii=False))
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
def register():
|
def register():
|
||||||
if os.getenv("SATORI_CLIENTS", None) is not None:
|
if os.getenv("SATORI_CLIENTS", None) is not None:
|
||||||
print(os.getenv("SATORI_CLIENTS", None))
|
|
||||||
driver = nonebot.get_driver()
|
driver = nonebot.get_driver()
|
||||||
driver.register_adapter(satori.Adapter)
|
driver.register_adapter(satori.Adapter)
|
||||||
|
Loading…
Reference in New Issue
Block a user