turdbot/cogs/misc.py
Ian Burgess e74b7f3b26 commit
2025-02-26 15:28:57 -07:00

29 lines
814 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)
@commands.Cog.listener()
async def on_ready(self):
print("Logged in as")
print(self.bot.user.name)
print(self.bot.user.id)
print(self.bot.version)
print("------")
@commands.Cog.listener()
async def on_message(self, message):
if message.author.id == 768214000798138419:
await message.add_reaction('🥚')
def setup(bot):
bot.add_cog(Misc(bot))