Skip to content

Email utils#133

Merged
krogers78 merged 7 commits intofeature-rewardsSystemfrom
emailUtils
Mar 19, 2018
Merged

Email utils#133
krogers78 merged 7 commits intofeature-rewardsSystemfrom
emailUtils

Conversation

@MikeSewell
Copy link

Email function added to botUtils.js.

const emailBodyString = `<table><tr><td><p>Enter the code below into Discord, in the same channel on the Armada Server. Verification will timeout after ${(timeoutInMiliseconds / 1000) / 60} minutes from first entering the !verify command.</p></td></tr><tr><td><h2>Verification Code: ${code}</h2></td></tr></table>`;
sendEmail(message, email, emailSubject, emailBodyString, emailType, (sendStatus) => {
if (sendStatus) {
const numPointToAdd = 1;

Choose a reason for hiding this comment

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

Question, could this be deleted? I'm not sure why points would be added in the verify file when all they are doing is becoming verified. This could probably be deleted.

Copy link
Author

Choose a reason for hiding this comment

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

I thought that verifying could warrant the users first point. What did you think? I could take it out.

Choose a reason for hiding this comment

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

Maybe take out that section and in the part where it creates the new member instead of setting it to 0 it could be set to a variable of 1. Just a thought since that part already sets it to zero to begin. We could have it start with 1 points instead of 0. It does make sense to reward them with at least a point for verifying though, you're right.

Copy link
Author

Choose a reason for hiding this comment

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

Yea, that makes more sense to keep it dry.

Copy link

@krogers78 krogers78 left a comment

Choose a reason for hiding this comment

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

Everything looks good to me after the change!

Copy link

@krogers78 krogers78 left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@LevanceWam
Copy link

LGTM

@krogers78 krogers78 merged commit 3487e64 into feature-rewardsSystem Mar 19, 2018
@reactivepixel reactivepixel deleted the emailUtils branch August 21, 2019 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants