log_images fixed

This commit is contained in:
phixxy 2024-03-30 19:37:19 -07:00
parent 38d6443662
commit 0b358ac0b9

View file

@ -364,11 +364,11 @@ class ChatGPT(commands.Cog):
) )
async def log_images(self, ctx, message): async def log_images(self, ctx, message):
if "enable" in message: if "enable" in message:
self.edit_channel_config(ctx.channel.id, "chat_enabled", True) self.edit_channel_config(ctx.channel.id, "log_images", True)
await ctx.send("Chat Enabled") await ctx.send("Image Viewing Enabled")
elif "disable" in message: elif "disable" in message:
self.edit_channel_config(ctx.channel.id, "chat_enabled", False) self.edit_channel_config(ctx.channel.id, "log_images", False)
await ctx.send("Chat Disabled") await ctx.send("Image Viewing Disabled")
else: else:
await ctx.send("Usage: !log_images (enable|disable)") await ctx.send("Usage: !log_images (enable|disable)")