There was an error while loading. Please reload this page.
1 parent 86cb5ba commit 276060eCopy full SHA for 276060e
1 file changed
command/dev/shutdown.py
@@ -21,8 +21,10 @@
21
22
@bot.tree.command(name="shutdown", description="[Dev] Para o processo de execução da LuaBot")
23
async def shutdown(interaction: discord.Interaction):
24
- if not OWNER_ID:
25
- await interaction.response.send_message("Tá querendo me desligar é? **Você não tem permissão para me desativar!**")
26
- else:
27
- await client.stop_app(SQUARE_APP_ID)
28
- print("Adeus Mundo Cruel")
+ if str(interaction.user.id) != OWNER_ID:
+ await interaction.response.send_message( "Tá querendo me desligar é? **Você não tem permissão para me desativar!**" )
+
+ if str(interaction.user.id) == OWNER_ID:
+ await interaction.response.send_message("Desligando...")
29
+ print(f"{interaction.user.id} me desligou!")
30
+ await client.stop_app(SQUARE_APP_ID)
0 commit comments