mirror of
https://github.com/dizedev/Main-tech.git
synced 2026-09-16 21:58:48 +00:00
Update pingcommands.py
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user