add command to embiggen an emote (#15)

This commit is contained in:
Chippy 2021-02-16 07:31:24 +01:00 committed by GitHub
parent bc0f24d89e
commit 4945a003d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -534,6 +534,15 @@ class Emotes(commands.Cog):
f'Animated emotes: **{animated_emotes} / {emote_limit}** ({animated_left} left, {percent_animated}% full)\n'
f'Total: **{total_emotes} / {emote_limit * 2}**')
@commands.command(aliases=["embiggen"])
async def big(self, context, emote):
"""Shows the original image for the given emote.
emote: the emote to embiggen.
"""
emote = await self.parse_emote(context, emote)
await context.send(f'{emote.name}: {emote.url}')
async def parse_emote(self, context, name_or_emote):
match = utils.emote.RE_CUSTOM_EMOTE.match(name_or_emote)
if match: