turdbot/cogs/misc.py
Ian Burgess 0823552a2d stable
2024-06-19 22:22:21 -06:00

18 lines
430 B
Python

from discord.ext import bridge, commands
from bin.storage import storage
class Misc(commands.Cog):
def __init__(self, bot):
self.bot = bot
@bridge.bridge_command()
async def ping(self, ctx):
await ctx.send(f"pong! {round(self.bot.latency * 1000)}ms")
@bridge.bridge_command()
async def version(self, ctx):
await ctx.send(self.bot.version)
def setup(bot):
bot.add_cog(Misc(bot))