aboutsummaryrefslogtreecommitdiff
path: root/cogs/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'cogs/util.py')
-rw-r--r--cogs/util.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/cogs/util.py b/cogs/util.py
new file mode 100644
index 0000000..e0566d0
--- /dev/null
+++ b/cogs/util.py
@@ -0,0 +1,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))
+