From 4576976e2c96872dccb053680ffd9fd75db3006a Mon Sep 17 00:00:00 2001 From: Huyu2239 Date: Sat, 10 Apr 2021 22:05:20 +0900 Subject: [PATCH] fix embed.py --- lib/embed.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/embed.py b/lib/embed.py index 6651c53..1f9aa53 100644 --- a/lib/embed.py +++ b/lib/embed.py @@ -12,10 +12,13 @@ async def get_embed_type(guild_id): with open(f'{data_directory}embed_type.json') as f: json_dict = json.load(f) num = 0 - while num < 2: + while num < 1: num += 1 if guild_id in json_dict.get(str(num)): break + else: + print('未設定') + num = 1 return num