blob: e0566d0068ba71f4ffd5e61c797a7d5c7ee8b2e3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
from discord.ext import commands
import discord
import asyncio
class Util(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command(aliases=['ping'])
async def _ping(self, ctx):
await ctx.send(f'Pong! {round(self.bot.latency*1000)}ms')
def setup(bot):
bot.add_cog(Util(bot))
|