Table of content
Commands
S.No | Command | Use |
---|---|---|
1. | >cric |
Open the home window. This command is not necessary and user can directly use the next command. |
2. | >cric play |
Starts the game. |
3. | >cric help |
Opens help and rules page. |
Installation
Click here to install the bot to your server.
Game rules
- To start the game, user must type
>cric play
in the channel. By default, the user will get to bat first. - You can enter any number from 1 to 6. At the same time, the system will also choose a random number anywhere from 1 to 6.
- If the number matches with the number that system chose, the user is OUT. In case it does not match, the runs will keep on adding to user's scoreboard.
- After first innings, the user will have to bowl. The rules mentioned as above apply for bowling also.
- Game will end if the system gets out or has scored more runs than the user (won the game).
- The user will get a maximum of 15 seconds to give his/her input. Failing to do so will end the game.
License
CricBot is licensed under the GPL 3.0 license. See the file LICENSE for more information. If you plan to use any part of this source code in your own bot, I would be grateful if you would include some form of credit somewhere.