Skip to content

Commit 89ac761

Browse files
committed
Remove points changes and bump
1 parent b174886 commit 89ac761

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hubot-plusplus-expanded-awardco",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"description": "",
55
"main": "index.js",
66
"engines": {

src/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports = function (robot) {
3636
robot.on('plus-plus', handlePlusPlus);
3737
robot.on('plus-plus-awardCo-sent', handleAwardCoSent);
3838
robot.respond(/.*change.*awardCo\s?(?:integration)?\s?(?:configuration|config|response|setting|settings).*/ig, changeAwardCoConfig);
39-
robot.respond(/.*change.*awardCo.*(points|amount).*/ig, changeAwardCoAmount);
39+
// robot.respond(/.*change.*awardCo.*(points|amount).*/ig, changeAwardCoAmount);
4040
robot.respond(/.*toggle dm about awardCo.*/ig, toggleAwardCoDM);
4141

4242
async function changeAwardCoConfig(msg) {
@@ -212,18 +212,18 @@ module.exports = function (robot) {
212212
const user = await userService.getUser(e.event.sender.slackId);
213213
if (user.awardCoDM === true || user.awardCoDM === undefined) {
214214
let dm = `We sent <@${e.event.recipient.slackId}> ${e.response.result.amount_with_currency} via ${awardName}. You now have ${e.response.result.giver.giving_balance_with_currency} left.`;
215-
if ((!user.awardCoAmount || e.event.amount === 1) && Helpers.rngBoolean()) {
215+
/* if ((!user.awardCoAmount || e.event.amount === 1) && Helpers.rngBoolean()) {
216216
dm += `\n\nDid you know you could change the amount you send per ${robot.name} Point?\n Just DM @${robot.name} \`change my ${awardName} points setting\`,`;
217217
dm += '\nI will ask you about how many points you\'d like to send per `++` you respond with a number.\n :tada: Bingo Bango Bongo, you\'re all set.';
218-
}
218+
} */
219219
if (user.awardCoDM === undefined && Helpers.rngBoolean()) {
220220
dm += `\n\nDon't like these DMs about ${awardName}?\nJust DM @${robot.name} \`toggle dm about ${awardName}\` and we will turn off this DM.`;
221221
}
222222
robot.messageRoom(e.event.sender.slackId, dm);
223223
}
224224
e.event.msg.send(awardCoMessage);
225225
} else {
226-
robot.logger.error('there was an issue sending a award', e.response.message);
226+
robot.logger.error('there was an issue sending a award', e.response);
227227
e.event.msg.send(`Sorry, there was an issue sending your ${awardName} award: ${e.response.message}`);
228228
}
229229
}

0 commit comments

Comments
 (0)