メッセージの文言を変更
This commit is contained in:
parent
9e4f39f8fa
commit
18970c9079
1 changed files with 2 additions and 2 deletions
|
@ -232,7 +232,7 @@ class Bot(discord.Client):
|
|||
return result
|
||||
|
||||
async def on_ready(self):
|
||||
print("ログイン成功")
|
||||
print("DiscordのBotが起動しました。")
|
||||
|
||||
async def on_message(self, message):
|
||||
if message.author.bot:
|
||||
|
@ -266,7 +266,7 @@ class Bot(discord.Client):
|
|||
elif register["result"] == "pc_already_in_use_by_you":
|
||||
await message.channel.send(f"あなたはPCをもう使用されているようです。使用状態を解除するには /stop で使用終了をお知らせください。\nPC番号 | {register["pc_number"]}\nデバイス番号 | {register["device_number"]}\n使用開始時刻 | {register["start_time"]}\n使用目的 | {register["detail"]}")
|
||||
elif register["result"] == "pc_already_in_use_by_other":
|
||||
await message.channel.send(f"PCはもう使用されています。別のPC番号を指定して、再度お試しください。")
|
||||
await message.channel.send(f"そのPCは他のメンバーによって使用されています。別のPC番号を指定して、再度お試しください。")
|
||||
else:
|
||||
await message.channel.send("番号がおかしいようです。")
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue