mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-20 02:26:32 +01:00
even more extreme
This commit is contained in:
parent
3af2682e6a
commit
52452638c1
1 changed files with 9 additions and 4 deletions
|
@ -72,8 +72,13 @@ class Extremism(commands.Cog):
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
|
|
||||||
@commands.slash_command(name="radicalise")
|
@commands.slash_command(name="radicalise")
|
||||||
async def radicalise(self, ctx, image: discord.Attachment):
|
async def radicalise(self, ctx, image: discord.Attachment = None, user: discord.User = None):
|
||||||
"""Makes an image extremely radical."""
|
"""Makes an image extremely radical."""
|
||||||
|
if image is None:
|
||||||
|
if user is None:
|
||||||
|
user = ctx.author
|
||||||
|
image = user.avatar.with_format("png")
|
||||||
|
else:
|
||||||
if not image.content_type.startswith("image/"):
|
if not image.content_type.startswith("image/"):
|
||||||
await ctx.send("That's not an image!")
|
await ctx.send("That's not an image!")
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue