From 5aff454bb68f4822a2cb171c3fab790fe6909df6 Mon Sep 17 00:00:00 2001 From: ryslandevds <87265715+ryslandevds@users.noreply.github.com> Date: Sat, 13 Jan 2024 15:59:47 +0300 Subject: [PATCH] Update pingcommands.py --- cogs/pingcommands.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cogs/pingcommands.py b/cogs/pingcommands.py index 04d913a..d28aa3c 100644 --- a/cogs/pingcommands.py +++ b/cogs/pingcommands.py @@ -9,13 +9,13 @@ class PingCommands(commands.Cog): @commands.has_any_role(1091637465858715648) @commands.slash_command(name="ping", description="Показывает состояние бота") async def ping(self, ctx: disnake.AppCommandInteraction): - if disnake.utils.get(ctx.author.roles, id=1091637465858715648): - if ctx.channel.id == 1060544039767789639: + if disnake.utils.get(ctx.author.roles, id=): + if ctx.channel.id == : await ctx.send("Понг!") else: await ctx.send('Вы не можете использовать эту команду в текущем канале.') else: - await ctx.send(f'{ctx.author.mention}, у вас нет роли <@&1060541642450411560>.') + await ctx.send(f'{ctx.author.mention}, у вас нет роли .') def setup(bot):