$ ./setup
Wow! That was easy.
So like... open the file CONFIG in your favourite text editor. It will look something like this:
API_HOST="https://matrix.org/_matrix/client/api/v1"
USER_ID=""
ACCESS_TOKEN=""
This next bit is insanely complicated: put the userID you made for the bot (they look something like "@username:matrix.org") inside the quotes beside USER and the access token inside the quotes beside ACCESS_TOKEN.
That's cool. Use this handly utility to grab your credentials:
$ ./login
This will prompt you for your user id and password. Use these values for your CONFIG file.
Well download a client from here and signup.
This is a hard one too:
$ ./run
Whoa. Crazy shit.
First, invite the bot to your room or start a chat with it. If the bot is running, it will automatically accept the invite.
Then, you can play the game with these commands:
!sudoku new
- Starts a new game.
- If there is already a game being played: are you sure?
!sudoku yes
!sudoku restart
!sudoku solve
- Solves the puzzle for you and shows you the answer.
!sudoku <row><col> <number>
- Where row can be letters A-I
- Where col can be numbers 0-8; and
- Where number can be numbers 1-9
I'm sure you can take it from here 😉
- Make a script to login and generate CONFIG file for us.
- Maybe make a bin/ folder?
- Perhaps move the CONFIG file somewhere else?
- Maybe an install script so we don't run the bot within repo folder?