I need to make a slash command available on all servers (disnake library). Now I have such code, but it doesn't work:
@bot.slash_command(name="хост", description="Состояние хостинга ботихи")
async def хост(inter):
emb = disnake.Embed(
title="Состояние аппарата жизнеобеспечения",
description=f"""
> <:cpu:1129080297724588062> Процессор: *`использовано {psutil.cpu_percent()}%`*
> <:ram:1129080299578466464> Оперативная память: *`использовано {psutil.virtual_memory().percent}%`*
> <:ping:1129080295069593690> Пинг: *`{round (bot.latency * 1000)} ms`*""",
color=0x2d2b31)
await inter.response.send_message(embed=emb)
print(f'\n{datetime.now()} :: Пользователь {inter.author} вызвал команду "/хостинг".')
The libraries are imported and the bot is configured (this is a code snippet). Sorry for my English.
I want to create slash-command, available to use on all servers. I use disnake