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

Feature : The <color> argument for dead/alive commands is optional #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Rouux
Copy link

@Rouux Rouux commented Sep 28, 2020

If the <color> argument is not provided, the dead/alive command will be applied to the author of the message.
I'm not very good at JS so you might want to change a few things but at least this can give you an idea.

Roux: ,ng
Testing-Bot: Started a new game in Bot testing! Type ,sync to control it through your phone.
Roux: ,join red
Testing-Bot: You joined the game as  red
Roux: ,alive testinRandomWord
Testing-Bot: Invalid color. Try one of these: red, blue, green, pink, orange, yellow, black, white, purple, brown, cyan, lime
Roux: ,alive red
Testing-Bot: Roux#0472 (red) is not dead. Try one of these: red, blue, green, pink, orange, yellow, black, white, purple, brown, cyan, lime
Roux: ,alive blue
Testing-Bot: There's no player with the color blue. Try one of these: red, blue, green, pink, orange, yellow, black, white, purple, brown, cyan, lime
Roux: ,alive
Testing-Bot: Roux#0472 (red) is not dead. Try one of these: red, blue, green, pink, orange, yellow, black, white, purple, brown, cyan, lime
Roux: ,dead testingRandomWord
Testing-Bot: Invalid color. Try one of these: red, blue, green, pink, orange, yellow, black, white, purple, brown, cyan, lime
Roux: ,dead blue
Testing-Bot: There's no player with the color blue. Try one of these: red, blue, green, pink, orange, yellow, black, white, purple, brown, cyan, lime
Roux: ,dead
Testing-Bot: Roux#0472 (red) has been marked as dead.
Roux: ,alive
Testing-Bot: Roux#0472 (red) has been marked as alive.
Roux: ,dead red
Testing-Bot: Roux#0472 (red) has been marked as dead.
Roux: ,dead
Testing-Bot: Roux#0472 (red) is not alive. Try one of these: red, blue, green, pink, orange, yellow, black, white, purple, brown, cyan, lime
Roux: ,d
Testing-Bot: Roux#0472 (red) is not alive. Try one of these: red, blue, green, pink, orange, yellow, black, white, purple, brown, cyan, lime
Roux: ,eg
Testing-Bot: Game ended. Start a new one with ,newgame

Roux: ,ng
Testing-Bot: Started a new game in Bot testing! Type ,sync to control it through your phone.
Roux: ,join
Testing-Bot: You need to give me a color. Try one of these: red, blue, green, pink, orange, yellow, black, white, purple, brown, cyan, lime
Roux: ,join test
Testing-Bot: Invalid color. Try one of these: red, blue, green, pink, orange, yellow, black, white, purple, brown, cyan, lime
Roux: ,kick
Testing-Bot: You need to give me a color. Try one of these: red, blue, green, pink, orange, yellow, black, white, purple, brown, cyan, lime
 Roux: ,kick blue
Testing-Bot: There's no player with the color blue. Try one of these: red, blue, green, pink, orange, yellow, black, white, purple, brown, cyan, lime
Roux: ,join red
Testing-Bot: You joined the game as  red
Roux: ,join red
Testing-Bot: You're already in this game. Type ,leave to leave it.

That's how I tested my changes, making sure I didn't break anything on a few commands but you might want to check out by yourself, up to you

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.

1 participant