mirror of
https://github.com/neoarz/Syntrel.git
synced 2025-12-25 11:40:12 +01:00
chore: ruff formatting
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
|
||||
|
||||
def ping_command():
|
||||
@commands.hybrid_command(
|
||||
name="ping",
|
||||
@@ -12,7 +13,9 @@ def ping_command():
|
||||
description=f"The bot latency is {round(self.bot.latency * 1000)}ms.",
|
||||
color=0x7289DA,
|
||||
)
|
||||
embed.set_author(name="Ping", icon_url="https://yes.nighty.works/raw/gSxqzV.png")
|
||||
embed.set_author(
|
||||
name="Ping", icon_url="https://yes.nighty.works/raw/gSxqzV.png"
|
||||
)
|
||||
if getattr(context, "interaction", None):
|
||||
inter = context.interaction
|
||||
if not inter.response.is_done():
|
||||
@@ -21,5 +24,5 @@ def ping_command():
|
||||
await inter.followup.send(embed=embed, ephemeral=False)
|
||||
else:
|
||||
await context.send(embed=embed)
|
||||
|
||||
|
||||
return ping
|
||||
|
||||
Reference in New Issue
Block a user