diff options
author | ziro <palembani@gmail.com> | 2020-08-05 03:53:17 +0000 |
---|---|---|
committer | ziro <palembani@gmail.com> | 2020-08-05 03:53:17 +0000 |
commit | c69d0ff2cfcf9de0c162e27e75cb6f6a945c61bc (patch) | |
tree | 8b0c2fd8fecb9df61b33bd5998aafc0425b34070 /cogs/util.py | |
parent | 7e3f3e006d3cf29001e3990375d028dc9c91b757 (diff) | |
download | steve-bot-c69d0ff2cfcf9de0c162e27e75cb6f6a945c61bc.tar steve-bot-c69d0ff2cfcf9de0c162e27e75cb6f6a945c61bc.tar.gz steve-bot-c69d0ff2cfcf9de0c162e27e75cb6f6a945c61bc.tar.bz2 steve-bot-c69d0ff2cfcf9de0c162e27e75cb6f6a945c61bc.tar.lz steve-bot-c69d0ff2cfcf9de0c162e27e75cb6f6a945c61bc.tar.xz steve-bot-c69d0ff2cfcf9de0c162e27e75cb6f6a945c61bc.tar.zst steve-bot-c69d0ff2cfcf9de0c162e27e75cb6f6a945c61bc.zip |
+ Tweaking
Diffstat (limited to 'cogs/util.py')
-rw-r--r-- | cogs/util.py | 15 |
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)) + |