Compare commits

..

No commits in common. "225cc8129e67a1c21af28bcb6bad4665055b219e" and "773491e2ff444a96066af2f5ca69babca4707a2f" have entirely different histories.

17 changed files with 2 additions and 3 deletions

View File

@ -35,5 +35,4 @@ def upgrade() -> None:
def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table("reminders")
sa.Enum("LES", name="remindercategory").drop(op.get_bind())
# ### end Alembic commands ###

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 in constants.EMOJI_MAP, text))
chars = list(filter(lambda c: c.isalnum(), text))
if not chars:
return await ctx.reply("👏", mention_author=False)
text = "👏".join(list(map(lambda c: constants.EMOJI_MAP[c], chars)))
text = "👏".join(list(map(lambda c: constants.EMOJI_MAP.get(c), chars)))
text = f"👏{text}👏"
if len(text) > constants.Limits.MESSAGE_LENGTH:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB