You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
stryan 498f672a91 add readme 2 months ago
LICENSE add license 2 months ago
README.md add readme 2 months ago
dealer.go matches are now technically playable 2 months ago
go.mod inital queiing and DM support 2 months ago
go.sum inital queiing and DM support 2 months ago
lazystore.go inital queiing and DM support 2 months ago
main.go start parsing commands 2 months ago
match.go matches are now technically playable 2 months ago
player_room.go we have liftoff baby 2 months ago

README.md

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.