Created
June 26, 2016 17:14
-
-
Save Necktrox/c74379e1893ff8fe3e8d7c3b7f851257 to your computer and use it in GitHub Desktop.
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
USER_MENTION_REGEX = re.compile(ur"^<@([\d]+)>$") | |
USER_NICK_MENTION_REGEX = re.compile(ur"^<@!([\d]+)>$") | |
CHANNEL_MENTION_REGEX = re.compile(ur"^<#([\d]+)>$") | |
ROLE_MENTION_REGEX = re.compile(ur"^<@&([\d]+)>$") | |
USER_REVERSE_REGEX = re.compile(ur"^@(.*#[\d]{4})$") | |
CHANNEL_REVERSE_REGEX = re.compile(ur"^#(.*#[\d]{4})$") | |
ROLE_REVERSE_REGEX = re.compile(ur"^@(.*)$") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment