Merge pull request #5 from iakrules/ping

Update pingCog.py
This commit is contained in:
ishaan 2021-05-18 18:46:22 -04:00 committed by GitHub
commit 2bdfee9645
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
import discord import discord
from discord.ext import commands from discord.ext import commands
class ExampleCog(commands.Cog): class PingCog(commands.Cog):
def __init__(self, client): def __init__(self, client):
self.client = client self.client = client
@ -17,4 +17,4 @@ class ExampleCog(commands.Cog):
await ctx.send(f'Pong! `{round(client.latency * 1000)}ms`') await ctx.send(f'Pong! `{round(client.latency * 1000)}ms`')
def setup(client): def setup(client):
client.add_cog(ExampleCog(client)) client.add_cog(PingCog(client))