Skip to content

Commit

Permalink
Better Detection of Emoji in #yelling (#157)
Browse files Browse the repository at this point in the history
* timeout members who don't yell in #yelling

* Formatting Etc.

* Update yelling.py

* Update yelling.py

* Update yelling.py

* Create Decorator to Prevent Use of Commands With Minuscule Argument To Bot Commands In #yelling

* Update yelling.py

* Update yelling.py

* Update yelling.py

---------

Co-authored-by: Andrew Brown <[email protected]>
  • Loading branch information
bradleysigma and andrewj-brown authored Aug 31, 2023
1 parent 7a58fd0 commit f62c6c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uqcsbot/yelling.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def clean_text(self, message: str) -> str:

# ignore emoji and links
text = re.sub(
r":[\w\-\+\~]+:",
r"<(?P<animated>a?):(?P<name>\w{2,32}):(?P<id>\d{18,22})>",
lambda m: m.group(0).upper(),
message,
flags=re.UNICODE,
Expand Down

0 comments on commit f62c6c0

Please sign in to comment.