メッセージの文言を変更

This commit is contained in:
suti7yk5032 2024-07-07 16:08:17 +09:00
parent 9e4f39f8fa
commit 18970c9079

View file

@ -232,7 +232,7 @@ class Bot(discord.Client):
return result return result
async def on_ready(self): async def on_ready(self):
print("ログイン成功") print("DiscordのBotが起動しました。")
async def on_message(self, message): async def on_message(self, message):
if message.author.bot: if message.author.bot:
@ -266,7 +266,7 @@ class Bot(discord.Client):
elif register["result"] == "pc_already_in_use_by_you": 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"]}") 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": elif register["result"] == "pc_already_in_use_by_other":
await message.channel.send(f"PCはもう使用されています。別のPC番号を指定して、再度お試しください。") await message.channel.send(f"そのPCは他のメンバーによって使用されています。別のPC番号を指定して、再度お試しください。")
else: else:
await message.channel.send("番号がおかしいようです。") await message.channel.send("番号がおかしいようです。")
else: else: