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__
|
type(error), error, error.__traceback__
|
||||||
)
|
)
|
||||||
print(f"Ignoring exception in command {ctx.command}:\n{trace}")
|
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:
|
async def setup(bot: MinearchyBot, /) -> None:
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
|
|
|
@ -88,10 +88,6 @@ class Miscellanious(
|
||||||
if channel is None:
|
if channel is None:
|
||||||
channel = ctx.channel
|
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]
|
logs = self.sniped[channel.id]
|
||||||
|
|
||||||
if not logs:
|
if not logs:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue