blob: 7a5fface66eb5556efbe569b4531d6ee8fc8899b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
from discord.ext import commands
import discord
import asyncio
class Utils(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command()
async def ping(self, ctx):
"""Tell the ping of the bot to the discord servers"""
await ctx.send(f'Pong! {round(self.bot.latency*1000)}ms')
def setup(bot):
bot.add_cog(Utils(bot))
|