• luciferofastora@feddit.org
    link
    fedilink
    arrow-up
    1
    ·
    2 months ago

    Depending on the platform the bot is implemented with, there are emoji-regex packages that can at least match the characters, even if counting them might be difficult. I believe python 3.3+ has support for counting displayed characters, so title[:3]="ich" and len(title[3:-3]) in (1, 2, 3) and title[-3:]="iel" should work for the length check.