Skip to content

Commit 3457dab

Browse files
authored
Merge pull request #56 from D1ffic00lt/dev
add but_report slash command
2 parents 30c414e + b831f45 commit 3457dab

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

slashbotsections/elements/user.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,3 +736,14 @@ async def __promo_create(self, inter: discord.Interaction, cash: int, key: str =
736736
inline=False
737737
)
738738
await inter.response.send_message(embed=self.emb)
739+
740+
@app_commands.command(name="bug_report")
741+
@commands.cooldown(1, 5, commands.BucketType.user)
742+
async def __promo_create(self, inter: discord.Interaction, command: str, description: str) -> None:
743+
await self.bot.get_user(401555829620211723).send(
744+
f"Баг репорт от {inter.user} ({inter.user.id})\n"
745+
f"сервер {inter.guild} ({inter.guild.id})\n"
746+
f"Дата {get_time()}\n"
747+
f"команда: {command}\n"
748+
f"Описание: {description}")
749+
await inter.response.send_message("Баг репорт записан")

0 commit comments

Comments
 (0)