fstopの引数が間違っていたのを修正

This commit is contained in:
suti7yk5032 2024-07-07 17:37:53 +09:00
parent aeb9553113
commit c9b7259728

View file

@ -341,7 +341,7 @@ class Bot(discord.Client):
if len(msg_split) == 1: if len(msg_split) == 1:
await message.channel.send("PC番号を指定してください。") await message.channel.send("PC番号を指定してください。")
elif len(msg_split) == 2: elif len(msg_split) == 2:
fstop = self.force_stop(msg_split[1]) fstop = self.force_stop(pc_number=msg_split[1])
if fstop["result"] == "ok": if fstop["result"] == "ok":
await message.channel.send(f"PC番号 {msg_split[1]} の使用登録を解除しました。") await message.channel.send(f"PC番号 {msg_split[1]} の使用登録を解除しました。")
elif fstop["result"] == "not_used": elif fstop["result"] == "not_used":