turdbot/cogs/misc.py
Ian Burgess 229669d557 re
2024-06-19 19:06:24 -06:00

14 lines
385 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)