Clean up code

This commit is contained in:
Michał Gdula 2023-09-09 20:52:12 +01:00
parent 90a347eb0b
commit c359356f4b
10 changed files with 51 additions and 36 deletions

View file

@ -1,3 +1,4 @@
import discord
from discord.ext import commands
@ -7,4 +8,9 @@ class Ping(commands.Cog):
@commands.command()
async def ping(self, ctx):
await ctx.send(f"Pong! {round(self.bot.latency * 1000)}ms")
embed = discord.Embed(
title="Pong!",
description=f"{round(self.bot.latency * 1000)}ms",
color=discord.Color.orange(),
)
await ctx.reply(embed=embed, mention_author=False)