add command to embiggen an emote (#15)
This commit is contained in:
parent
bc0f24d89e
commit
4945a003d0
|
@ -534,6 +534,15 @@ class Emotes(commands.Cog):
|
||||||
f'Animated emotes: **{animated_emotes} / {emote_limit}** ({animated_left} left, {percent_animated}% full)\n'
|
f'Animated emotes: **{animated_emotes} / {emote_limit}** ({animated_left} left, {percent_animated}% full)\n'
|
||||||
f'Total: **{total_emotes} / {emote_limit * 2}**')
|
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):
|
async def parse_emote(self, context, name_or_emote):
|
||||||
match = utils.emote.RE_CUSTOM_EMOTE.match(name_or_emote)
|
match = utils.emote.RE_CUSTOM_EMOTE.match(name_or_emote)
|
||||||
if match:
|
if match:
|
||||||
|
|
Loading…
Reference in New Issue