mirror of
https://github.com/Fluffy-Bean/Lynxie.git
synced 2025-05-18 01:14:55 +00:00
Clean up code
This commit is contained in:
parent
90a347eb0b
commit
c359356f4b
10 changed files with 51 additions and 36 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue