+subfolders
This commit is contained in:
parent
cf47df21ec
commit
e0e38402eb
3 changed files with 23 additions and 2 deletions
15
cogs/info/pingCog.py
Normal file
15
cogs/info/pingCog.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import discord
|
||||
from discord.ext import commands
|
||||
|
||||
class PingCog(commands.Cog):
|
||||
|
||||
def __init__(self, client):
|
||||
self.client = client
|
||||
|
||||
# Commands
|
||||
@commands.command(aliases=['latency'])
|
||||
async def ping(self, ctx):
|
||||
await ctx.send(f'Pong! {round(self.client.latency * 1000)}ms')
|
||||
|
||||
def setup(client):
|
||||
client.add_cog(PingCog(client))
|
||||
Loading…
Add table
Add a link
Reference in a new issue