Browse Source

forgot a few things in image cog when cleaning up code.

forgot a few things in image cog when cleaning up code.
tags/v2.0.0
Roxie Gibson 6 years ago
parent
commit
4afb18ab14
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      roxbot/cogs/image.py

+ 2
- 3
roxbot/cogs/image.py View File

@@ -200,7 +200,7 @@ class ImageEditor:
Required because image has outputs that are user decided and therefore could need logging for."""
logging = roxbot.guild_settings.get(ctx.guild).logging
log_channel = self.bot.get_channel(logging["channel"])
await roxbot.log(
return await roxbot.log(
ctx.guild,
log_channel,
"image",
@@ -236,6 +236,7 @@ class ImageEditor:
file = await self.flag_filter("lgbt", flag, image)
output = await ctx.send(file=file)
os.remove(file.filename)
await self.image_logging(ctx, output)


@pride.command(aliases=["trans"])
@@ -408,8 +409,6 @@ class ImageEditor:
Provide a URL, that image
Provide an image via upload, that image.
"""
logging = roxbot.guild_settings.get(ctx.guild).logging
log_channel = self.bot.get_channel(logging["channel"])
if not image:
image = self.image_lookup(ctx.message)
filename = await roxbot.http.download_file(image)

Loading…
Cancel
Save