strへの変換を撤回

This commit is contained in:
suti7yk5032 2024-09-06 02:02:07 +09:00
parent 75fa89497e
commit 611bd03b80

View file

@ -687,7 +687,7 @@ class Bot(discord.Client):
if os.path.isfile(dislocker.onetime_config_path):
with open(dislocker.onetime_config_path, "r") as r:
onetime_config = json.load(r)
onetime = str(onetime_config["onetime"]["pc_register"])
onetime = onetime_config["onetime"]["pc_register"]
if onetime == None:
onetime = str(self.password_generate(8))
onetime_config["onetime"]["pc_register"] = onetime
@ -711,7 +711,7 @@ class Bot(discord.Client):
if os.path.isfile(dislocker.onetime_config_path):
with open(dislocker.onetime_config_path, "r") as r:
onetime_config = json.load(r)
onetime = str(onetime_config["onetime"]["device_register"])
onetime = onetime_config["onetime"]["device_register"]
if onetime == None:
onetime = str(self.password_generate(8))
onetime_config["onetime"]["device_register"] = onetime