Created
March 31, 2022 14:38
-
-
Save KatsumiKougen/83abcc7ee6eae85fb4ffe53071c00b15 to your computer and use it in GitHub Desktop.
A minimal Discord "regional indicator" text generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sys import argv | |
ri = lambda let: f":regional_indicator_{let}:" if let.isalpha() else " " | |
print("".join(map(ri, argv[1]))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment