mirror of
https://github.com/RGBCube/minearchy-bot
synced 2025-07-27 17:07:45 +00:00
fixes
This commit is contained in:
parent
2c8c271ef1
commit
0de5ff5989
3 changed files with 2 additions and 7 deletions
|
@ -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:
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue