Skip to content

Mini games feature#165

Merged
JATaber merged 12 commits intoreactivepixel:Release3from
JATaber:miniGames_feature
May 22, 2018
Merged

Mini games feature#165
JATaber merged 12 commits intoreactivepixel:Release3from
JATaber:miniGames_feature

Conversation

@JATaber
Copy link

@JATaber JATaber commented May 21, 2018

on the !dadJoke command it throws an error and then send the info it is supposed to. Need help debugging the issue some. Other than that the project is good to go.

@brennondenny
Copy link
Contributor

Looks like circleCI found an issue:

"Code did not pass lint rulesbot/controllers/games.js: line 3, col 7, Error - 'https' is assigned a value but never used. (no-unused-vars)"

}
}
// makes a simple API request to icanhazdadjoke.com for a random dad joke
dadJokeAction() {
Copy link
Contributor

Choose a reason for hiding this comment

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

After doing the !dadJoke command the Bot first replies with "I Broke... Beep...Boop...Beep" before posting the Dad Joke. I believe this is fixable by adding a Return Statment.

Copy link

Choose a reason for hiding this comment

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

I get the same issue when running this. Adding a return statement helps stop this from happening.

Copy link
Author

Choose a reason for hiding this comment

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

I fixed this issue

}
}
// rolls the dice with the user set sides
rollDiceAction() {
Copy link
Contributor

@brennondenny brennondenny May 22, 2018

Choose a reason for hiding this comment

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

This one is a bit strange, I was able to get the !roleDice command to work but not every time, even though every other command worked. I had to restart the docker container several times until I got one that worked and even then it would just stop after 3-4 goes.

Not sure what is causing this, it may be a local issue.

Copy link

Choose a reason for hiding this comment

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

I got the rolls dice working. I am a little confused by what you mean by with sides of your choosing

Copy link

@mpeck99 mpeck99 left a comment

Choose a reason for hiding this comment

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

Overall it looks good only things are with the description for the !rollDice I am not sure what you mean choosing sides of your choice, and the !dadJoke sends an error first then the joke but this can be easily fixed

}
}
// makes a simple API request to icanhazdadjoke.com for a random dad joke
dadJokeAction() {
Copy link

Choose a reason for hiding this comment

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

I get the same issue when running this. Adding a return statement helps stop this from happening.

}
}
// rolls the dice with the user set sides
rollDiceAction() {
Copy link

Choose a reason for hiding this comment

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

I got the rolls dice working. I am a little confused by what you mean by with sides of your choosing

Copy link

@mattpezzente mattpezzente left a comment

Choose a reason for hiding this comment

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

Attempt to solve these small changes before merging into release3.

.then(body => message.reply(`Here is your joke ${message.author.username}!! ${body}`));
}
}

Choose a reason for hiding this comment

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

Possible solution to this would be to use async / await for the fetch, that way the reply waits for the joke to return before posting.

Copy link
Author

Choose a reason for hiding this comment

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

the function is already an async function

'!8ball',
'!8ball <question>',
'Shakes 8 Ball',
'',

Choose a reason for hiding this comment

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

Be sure to add a description to this command.

Copy link
Author

Choose a reason for hiding this comment

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

Thank you for this I overlooked this one fixing now

@JATaber JATaber merged commit fc2783e into reactivepixel:Release3 May 22, 2018
JATaber pushed a commit that referenced this pull request May 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants