-
-
Notifications
You must be signed in to change notification settings - Fork 59
Conversation
Removes uneeded message code from thanks command
@@ -35,7 +35,8 @@ const thanksCommands = { | |||
|
|||
const namesList = mentions.reduce((userList, mention) => { | |||
const toUser = mention.screenName.toLowerCase(); | |||
if (toUser !== fromUser && userList.indexOf(toUser) === -1) { | |||
|
|||
if (toUser !== fromUser && toUser !== 'all' && userList.indexOf(toUser) === -1) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've addressed this in #83
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@noncentz can you please remove the edit to this line so that this PR can be merged happily ever after?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@noncentz can you please put this in the PR message?
|
Replaces capture group with non-capture groups for thanks regexp
Ignore @ bthank user and bthank command
Ignore @ bthank user and bthank command
':point_right: *[consider adding a wiki article!]' + wikiUrl + '*'; | ||
} | ||
}, | ||
// messages: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Write a detailed changelog of the changes made in this PR in the PR Message ![Pending Change log](https://img.shields.io/badge/Pending:-Write changelog-006400.svg?style=flat-square&maxAge=2592000) |
@@ -106,7 +106,7 @@ const thanksCommands = { | |||
const username = blob.response.about.username, | |||
about = blob.response.about, | |||
uri = 'http://www.freecodecamp.com/' + username; | |||
str = '> :star: ' + about.browniePoints + ' | @' + username + ' | '; | |||
str = '> :cookie: ' + about.browniePoints + ' | @' + username + ' | '; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM |
Ignore thanks in usernames
Ignore tax and tanks triggering thanks command. Fixes #49 or dcsan/gitterbot#142
Removes missing thanks 'message' command
Removes botx command
Replace star emoji with cookie. Fixes #25
Correct typo in readme 'campberbot'
Fix about command. Fixes #86 - 'superstar' status.
Adds love command such as
show me some love camperbot
orwe luv you cbot
https://regex101.com/r/pT0zJ1/3