Skip to content
This repository has been archived by the owner on Oct 20, 2018. It is now read-only.

Fix/thanks #78

Merged
merged 14 commits into from May 1, 2016
Merged

Fix/thanks #78

merged 14 commits into from May 1, 2016

Conversation

ghost
Copy link

@ghost ghost commented Apr 15, 2016

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 or we luv you cbot
https://regex101.com/r/pT0zJ1/3

@SaintPeter
Copy link
Member

@abhisekp Would you be able to spin this up and test it? I think you may have the most experience.

@noncentz Thanks! Really appreciate you resubmitting! Your code looks solid to me.

@ghost ghost mentioned this pull request Apr 16, 2016
@@ -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) {
Copy link
Member

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

Copy link
Member

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?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@abhisekp , is it good now? 2e431ed

@abhisekp
Copy link
Member

abhisekp commented Apr 24, 2016

@noncentz can you please put this in the PR message?

This PR also fixes dcsan/gitterbot#142

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: {
Copy link
Member

@abhisekp abhisekp Apr 25, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pending: Test this in bonfire rooms

Pending Test

@abhisekp
Copy link
Member

abhisekp commented Apr 25, 2016

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 + ' | ';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@noncentz can you implement this #86 here? (optional)

@ltegman
Copy link
Member

ltegman commented May 1, 2016

LGTM

@ltegman ltegman merged commit f05edce into freeCodeCamp:master May 1, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants