使用目的のプリセットが使えなくなるバグを修正

This commit is contained in:
suti7yk5032 2024-09-05 21:11:34 +09:00
parent b1994c5def
commit e41324eae4

View file

@ -185,12 +185,6 @@ class DL():
print("LOGGING ERROR mode w") print("LOGGING ERROR mode w")
class Bot(discord.Client): class Bot(discord.Client):
def password_generate(self, length): def password_generate(self, length):
@ -953,7 +947,7 @@ class Bot(discord.Client):
mouse_number_show = "自前" mouse_number_show = "自前"
else: else:
mouse_number_show = mouse_number mouse_number_show = mouse_number
if len(custom_id_split) == 5: if len(custom_id_split) >= 5:
if custom_id_split[4] == "quick": if custom_id_split[4] == "quick":
reason = custom_id_split[5] reason = custom_id_split[5]
register = bot.register(discord_user_id=interaction.user.id, name=interaction.user.name, display_name=interaction.user.display_name, pc_number=pc_number, keyboard_number=keyboard_number, mouse_number=mouse_number, detail=reason) register = bot.register(discord_user_id=interaction.user.id, name=interaction.user.name, display_name=interaction.user.display_name, pc_number=pc_number, keyboard_number=keyboard_number, mouse_number=mouse_number, detail=reason)