删除无用的 print

This commit is contained in:
Expliyh 2024-05-17 18:16:57 +08:00
parent 4c65a308d6
commit 10c383d66a
No known key found for this signature in database
GPG Key ID: F30DE0CFF6157916

View File

@ -17,12 +17,10 @@ def init(config: dict):
nonebot.logger.info("Satori clients already set in environment variable, skip.")
os.environ["SATORI_CLIENTS"] = json.dumps(satori_config.get("hosts", []), ensure_ascii=False)
config['satori_clients'] = satori_config.get("hosts", [])
print(json.dumps(satori_config.get("hosts", []), ensure_ascii=False))
return
def register():
if os.getenv("SATORI_CLIENTS", None) is not None:
print(os.getenv("SATORI_CLIENTS", None))
driver = nonebot.get_driver()
driver.register_adapter(satori.Adapter)