log_images fixed
This commit is contained in:
parent
38d6443662
commit
0b358ac0b9
1 changed files with 4 additions and 4 deletions
|
|
@ -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)")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue