Skip to content

Commit 1e758b8

Browse files
authored
Implement '/minerar' command for mining feature
Added a new command '/minerar' for mining in Discord.
1 parent 7eb65e4 commit 1e758b8

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

main.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
bot = commands.Bot(command_prefix='+', intents=intents)
1919

2020
textos = (
21-
"🌙| Use meus novos comandos! /saldo e /daily!"
21+
"🌙| Use meus novos comandos! /minerar!"
2222
)
2323

2424
@bot.event
@@ -107,6 +107,22 @@ async def daily_error(interaction: discord.Interaction, error: app_commands.AppC
107107
else:
108108
raise(error)
109109

110+
# Tive a Ideia quando tava vendo o Koxik Bot
111+
@bot.tree.command(name="minerar", description="[Minecraft] Minere Minérios no Discord!")
112+
async def minerar(interaction: discord.Interaction):
113+
minerios = ["Pedra", "Carvão", "Cobre", "Ferro", "Ouro", "Diamante"]
110114

115+
resultado = random.choices(minerios)
116+
117+
118+
embed = discord.Embed(
119+
title="⛏️ Mineração",
120+
description=f"{interaction.user.mention} foi pras profundezas e encontrou:",
121+
color=discord.Color.blue()
122+
)
123+
124+
embed.add_field(name="Minério Coletado", value=f"Minério: ⛏️ {resultado}")
125+
126+
await interaction.response.send_message(embed=embed)
111127

112128
bot.run(TOKEN)

0 commit comments

Comments
 (0)