We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21541ff commit 6063740Copy full SHA for 6063740
app/app.py
@@ -343,6 +343,13 @@ async def bye(interaction: discord.Interaction):
343
await bot.close()
344
345
346
+@tree.command(name="kill", description="ボットプロセスを強制終了します")
347
+async def kill(interaction: discord.Interaction):
348
+ await interaction.response.send_message("ボットプロセスを強制終了します。")
349
+ cleanup_processes()
350
+ os._exit(1)
351
+
352
353
@tree.command(name="get", description="辞書の内容を取得するよ")
354
async def get(interaction: discord.Interaction):
355
await interaction.response.send_message(showDict())
0 commit comments