Skip to content

Instantly share code, notes, and snippets.

@PSingletary
Last active July 21, 2024 14:37
Show Gist options
  • Save PSingletary/a9da9db0b2208958e1ee4968e70e2195 to your computer and use it in GitHub Desktop.
Save PSingletary/a9da9db0b2208958e1ee4968e70e2195 to your computer and use it in GitHub Desktop.
helpful chatterino regex

Chatterino

Greetings
/^(hi.*|hello|hey.*|yo|salutation.*|greeting.*|whatup|welcome|(morning|afternoon|evening|timezone))
Show mods, vips, staff, broadcasters, admins only
(author.badges) contains ("VIP") || (author.badges) contains ("moderator") || (author.badges) contains ("verified") || (author.badges) contains ("staff") || (flags.highlighted) && (!(flags.sub_message))
Greetings
(message.content contains "hi")||(message.content contains "hello")||(message.content contains "hey")||(message.content contains "yo")||(message.content contains "salutation")||(message.content contains "greeting")||(message.content contains "whatup")||(message.content contains "welcome")||(message.content contains "hiya")||(message.content contains "morning")||(message.content contains "afternoon")||(message.content contains "evening")||(message.content contains "timezone")
Tags to Streamer + Hi/Hello
!((message.content contains channel.name) && (message.content match r"(^|\s{1,})(?i)[hHχΧxX]+[εέΕeEήηιίΙιΗηiIhHuUυύYy]+[λΛlL]{0,}[όoοοΟoωώΩωoOw0WoOοΟ]{0,}($|\s{1,})($|\s{1,})"))
No Moderators
(!(author.badges) contains ("moderator"))
Filter out every user without color (greynames)
!(author.no_color)
Filter out every user without color (greynames) 2.0
(!(author.no_color) || flags.system_message || flags.whisper || flags.highlighted || flags.points_redeemed || flags.sub_message)
Show highlighted messages or system messages like timeouts etc
(flags.highlighted || flags.system_message) && !flags.sub_message
No BOTS
((!(author.name) contains ("bot")) && ((author.name) !== ("streamelements")) && ((author.name) !== ("own3d")) && ((author.name) !== ("soundalerts")) && ((author.name) !== ("overlayexpert")) && ((author.name) !== ("streamstickers")) && ((author.name) !== ("streamlabs")))
Bot Command Trigger Messages
(!(message.content) match r"^[!+#]\w+")
No bot commands
!flags.highlighted && (message.content startswith "$" || message.content startswith "<" || message.content startswith "-" || message.content startswith "kb" || message.content startswith "!" || message.content startswith "/" || message.content startswith "%" || message.content startswith "?" || message.content startswith ">" || message.content startswith "^" || message.content startswith "]" || message.content startswith "¤" || message.content startswith "~" || message.content startswith "_" || message.content startswith "&"  || message.content startswith "!!" || message.content startswith "+" || message.content startswith "'" || message.content startswith "m!" || message.content startswith "*" || message.content startswith "#" || message.content startswith ";" || message.content startswith "}" || message.content startswith "§" || message.content startswith "@@")
Local sub mode
author.subbed || flags.system_message || flags.whisper || flags.highlighted || flags.points_redeemed || flags.sub_message
No Whispers
(flags.whisper) == "False"
Single Word Messages
(!(message.content) match r"^[^ ]*$")
Really Small Messages
(!(message.length) <= (3))
Really Long Messages
(message.length) <= (200)
Only Digits
(!(message.content) match r"^\s{0,}\d{1,}\s{0,}$")
No Links
!(message.content) match r"(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})"
Same Word Spam
(!(message.content) match r"(.{8,})(?=\1)")
Repeated Phrases
(!(message.content) match r"\b(\w+(?:\s*\w*))\s+\1\b")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment