moved moderate command to phixxycom
This commit is contained in:
parent
e401ef8af8
commit
6c2dcabeb1
2 changed files with 11 additions and 12 deletions
|
|
@ -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))
|
||||
Loading…
Add table
Add a link
Reference in a new issue