2024-06-19 19:06:24 -06:00
|
|
|
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):
|
2024-06-19 22:22:21 -06:00
|
|
|
await ctx.send(self.bot.version)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def setup(bot):
|
|
|
|
|
bot.add_cog(Misc(bot))
|