pull/122/head
stijndcl 2022-09-24 17:01:58 +02:00
parent 773491e2ff
commit 961c125648
16 changed files with 2 additions and 2 deletions

View File

@ -29,12 +29,12 @@ class Fun(commands.Cog):
@commands.hybrid_command(name="clap")
async def clap(self, ctx: commands.Context, *, text: str):
"""Clap a message with emojis for extra dramatic effect"""
chars = list(filter(lambda c: c.isalnum(), text))
chars = list(filter(lambda c: c in constants.EMOJI_MAP, text))
if not chars:
return await ctx.reply("👏", mention_author=False)
text = "👏".join(list(map(lambda c: constants.EMOJI_MAP.get(c), chars)))
text = "👏".join(list(map(lambda c: constants.EMOJI_MAP[c], chars)))
text = f"👏{text}👏"
if len(text) > constants.Limits.MESSAGE_LENGTH:

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB