Recognize more emoji
This commit is contained in:
parent
9444b9db01
commit
9c57a40387
1 changed files with 3 additions and 0 deletions
|
@ -36,6 +36,9 @@ for line in sys.stdin:
|
|||
message = re.sub(r"^[#>]* *|[*_`]*", "", message)
|
||||
for emoji, numb in NUMBER_EMOJI.items():
|
||||
message = re.sub(f":{emoji}: *", numb, message)
|
||||
for numb in range(0, 9+1):
|
||||
message = re.sub(f":(green)?num{numb}: *", str(numb), message)
|
||||
message = message.replace("\ufe0f", "").replace("\u20e3", "")
|
||||
message = message.strip()
|
||||
else:
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue