Skip to content

Commit

Permalink
Update CommitBot.py
Browse files Browse the repository at this point in the history
Reference commitsto#240

Updated MENTION_REGEX so it will match allowed URL characters (and only those in allowable); so people don’t get into bad habits early.

Added two different options for making commits with the bot. The statement /iwill or the statement /commitsto. Because, well, why not?

It is way too early and I’m not used to the time change and the word commit is reminding me of the old movie Rocketman.
  • Loading branch information
echodaniel authored Sep 12, 2018
1 parent 70acd72 commit 116a682
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CommitBot.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@

# commit command reference. might not agree with comstants.
commits("user_id.commits.to/")
commits = commit # to hopefully parse the URL as part of the command "commit" within slack.
commit = commits

# constants
RTM_READ_DELAY = 1 # 1 second delay between reading from RTM
commit = "do"
MENTION_REGEX = "^<@(|[WU].+?)>(.*)/"
commit = "iwill, commitsto"
MENTION_REGEX = "/"

#Defines user IDs for each workspace the bot is installed in, in the event the bot is mentioned.
#Then goes into an infinite loop to check for mentions.
Expand Down

0 comments on commit 116a682

Please sign in to comment.