Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2 from Huyu2239/fix/embed.py
Browse files Browse the repository at this point in the history
fix embed.py
  • Loading branch information
Huyu2239 authored Apr 10, 2021
2 parents f2f6244 + 4576976 commit f8544d6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/embed.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit f8544d6

Please sign in to comment.