add readme

This commit is contained in:
stryan 2021-11-30 17:20:51 -05:00
parent 3f828a41c2
commit 498f672a91
1 changed files with 34 additions and 0 deletions

34
README.md Normal file
View File

@ -0,0 +1,34 @@
# tome_matrix
Tomecraft server using mautrix-go
## How to build
Requires Go 1.16
Just run go build
## Running tome_matrix
Create a config.yaml with the following variables:
homeserver: (homeserver_url)
username: (bot_username)
password: (bot_password)
homeserverDomain: (domain name that the matrix homeserver is on i.e. for server matrix.example.com put example.com
Make sure there is a matrix user with the above credentials available.
Run tome_matrix.
## Playing a match
Right now only direct matches are supported.
When the bot firsts logs in, it will create a room named #tomequeue . Join that room to have the bot create a DM with you.
Once the DM is created, you can start a match by sending
direct (username)
to the bot. This will cause it to invite both users to a new room: #tome_(UUID).
The tome_UUID room is the game room; it contains the game state and is public.
To actually play the game, send GameCommands to the DM room you have with the bot.