diff --git a/extensions/admin.py b/extensions/admin.py index 4ef2b44..c442321 100644 --- a/extensions/admin.py +++ b/extensions/admin.py @@ -55,18 +55,7 @@ async def update(ctx): else: await ctx.send("You don't have permission to do this.") -@commands.command( - description="Moderate", - help="This currently tool works by replacing the filename on the ftp server with a black image. The description will remain the same and may need to be altered.", - brief="Moderation Tools" - ) -async def moderate(ctx, filename): - await upload_sftp("blank_image.png", (os.getenv('ftp_public_html') + 'ai-images/'), filename) - output = "Image " + filename + " replaced" - await ctx.send(output) - async def setup(bot): bot.add_command(update) bot.add_command(reset) - bot.add_command(kill) - bot.add_command(moderate) \ No newline at end of file + bot.add_command(kill) \ No newline at end of file diff --git a/extensions/phixxycom.py b/extensions/phixxycom.py index cb09e81..7b80a88 100644 --- a/extensions/phixxycom.py +++ b/extensions/phixxycom.py @@ -311,5 +311,15 @@ class PhixxyCom(commands.Cog): except Exception as error: print("Failed to generate blog") + @commands.command( + description="Moderate", + help="This currently tool works by replacing the filename on the ftp server with a black image. The description will remain the same and may need to be altered.", + brief="Moderation Tools" + ) + async def moderate(self, ctx, filename): + await self.upload_sftp(f"{self.data_dir}blank_image.png", (os.getenv('ftp_public_html') + 'ai-images/'), filename) + output = "Image " + filename + " replaced" + await ctx.send(output) + async def setup(bot): await bot.add_cog(PhixxyCom(bot)) \ No newline at end of file