Update pingcommands.py

This commit is contained in:
ryslandevds
2024-01-13 15:59:47 +03:00
committed by GitHub
parent 01909a9b98
commit 5aff454bb6
+3 -3
View File
@@ -9,13 +9,13 @@ class PingCommands(commands.Cog):
@commands.has_any_role(1091637465858715648) @commands.has_any_role(1091637465858715648)
@commands.slash_command(name="ping", description="Показывает состояние бота") @commands.slash_command(name="ping", description="Показывает состояние бота")
async def ping(self, ctx: disnake.AppCommandInteraction): async def ping(self, ctx: disnake.AppCommandInteraction):
if disnake.utils.get(ctx.author.roles, id=1091637465858715648): if disnake.utils.get(ctx.author.roles, id=):
if ctx.channel.id == 1060544039767789639: if ctx.channel.id == :
await ctx.send("Понг!") await ctx.send("Понг!")
else: else:
await ctx.send('Вы не можете использовать эту команду в текущем канале.') await ctx.send('Вы не можете использовать эту команду в текущем канале.')
else: else:
await ctx.send(f'{ctx.author.mention}, у вас нет роли <@&1060541642450411560>.') await ctx.send(f'{ctx.author.mention}, у вас нет роли .')
def setup(bot): def setup(bot):