1
Fork 0
mirror of https://github.com/RGBCube/minearchy-bot synced 2025-07-27 08:57:46 +00:00
This commit is contained in:
RGBCube 2022-06-06 09:24:33 +00:00
parent 2c8c271ef1
commit 0de5ff5989
3 changed files with 2 additions and 7 deletions

View file

@ -47,7 +47,7 @@ class ErrorHandler(commands.Cog):
type(error), error, error.__traceback__
)
print(f"Ignoring exception in command {ctx.command}:\n{trace}")
self.bot.log_webhook.send(f"<@512640455834337290>```{trace}```")
await self.bot.log_webhook.send(f"<@512640455834337290>```{trace}```")
async def setup(bot: MinearchyBot, /) -> None:

View file

@ -1,4 +1,3 @@
from __future__ import annotations
from typing import TYPE_CHECKING

View file

@ -62,7 +62,7 @@ class Miscellanious(
)
async def count(self, ctx: commands.Context, /) -> None:
await ctx.reply(f"Currently in `{len(self.bot.guilds)}` servers.")
@commands.Cog.listener()
async def on_message_delete(self, message: discord.Message, /) -> None:
if not message.guild:
@ -88,10 +88,6 @@ class Miscellanious(
if channel is None:
channel = ctx.channel
if not any(channel.id == ch.id for ch in ctx.guild.chanels):
await ctx.reply("Invalid channel.")
return
logs = self.sniped[channel.id]
if not logs: