Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Roll dice command #136

Merged
merged 6 commits into from
Jan 29, 2022
Merged

Roll dice command #136

merged 6 commits into from
Jan 29, 2022

Conversation

EdwinYi-JanYang
Copy link
Contributor

Related Issues

Resolves Issue #95

Summary of Changes

Adds command .rd n which rolls an n-sided dice and pings the user with the returned value.

Steps to Reproduce

src/commands/fun/rollDice.ts Show resolved Hide resolved
src/commands/fun/rollDice.ts Show resolved Hide resolved
if (sides <= 0) {
return message.reply(`I cannot compute ` + sides + ' sides!');
}
else if (sides > 1000000) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can change else if to an if since the previous of statement exits the function

Copy link
Contributor Author

Choose a reason for hiding this comment

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

understood

@gzcharleszhang gzcharleszhang changed the title Origin/rolldice Roll dice command Jan 29, 2022
@EdwinYi-JanYang EdwinYi-JanYang merged commit be89d19 into master Jan 29, 2022
@gzcharleszhang gzcharleszhang deleted the origin/rolldice branch February 5, 2022 23:11
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.

2 participants