Small bugfixes

This commit is contained in:
Zeva Rose 2021-07-24 19:55:39 -06:00
parent e9f13e4a71
commit f6dc7743f5
3 changed files with 2 additions and 3 deletions

View file

@ -44,7 +44,7 @@ jarvis = commands.Bot(
) )
slash = SlashCommand(jarvis, sync_commands=True, sync_on_cog_reload=True) slash = SlashCommand(jarvis, sync_commands=True, sync_on_cog_reload=True)
jarvis_self = Process() jarvis_self = Process()
__version__ = "1.5.1" __version__ = "1.5.2"
db = DBManager(get_config().mongo).mongo db = DBManager(get_config().mongo).mongo

View file

@ -14,7 +14,6 @@ class ErrorHandlerCog(commands.Cog):
elif isinstance(error, commands.errors.CommandOnCooldown): elif isinstance(error, commands.errors.CommandOnCooldown):
await ctx.send( await ctx.send(
"Command on cooldown. Please wait before trying again", "Command on cooldown. Please wait before trying again",
hidden=True,
) )
else: else:
await ctx.send(f"Error processing command:\n```{error}```") await ctx.send(f"Error processing command:\n```{error}```")

View file

@ -257,7 +257,7 @@ class ModlogCog(commands.Cog):
): ):
modlog = Setting.get(guild=before.guild.id, setting="modlog") modlog = Setting.get(guild=before.guild.id, setting="modlog")
if modlog: if modlog:
channel = after.guild.get_channel(modlog["value"]) channel = after.guild.get_channel(modlog.value)
await asyncio.sleep(0.5) # Need to wait for audit log await asyncio.sleep(0.5) # Need to wait for audit log
embed = None embed = None
mute = Setting(guild=before.guild.id, setting="mute") mute = Setting(guild=before.guild.id, setting="mute")