You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A deterministic NodeJS bot that plays on the [hanab.live](https://hanab.live/) interface. Basic structure and ideas were taken from [Zamiell's example bot](https://github.com/Zamiell/hanabi-live-bot) (Python).
3
3
4
-
Currently, it plays around level 4 of [H-Group](https://hanabi.github.io/). The goal of the bot is to play with humans, so it should be able to handle suboptimal play within reason. However, it still expects that the conventions are followed (in terms of focus, chop, etc.) and does not perform any "learning".
4
+
Currently, it can play around levels 1-4 of [H-Group](https://hanabi.github.io/). The goal of the bot is to play with humans, so it should be able to handle suboptimal play within reason. However, it still expects that the conventions are followed (in terms of focus, chop, etc.) and does not perform any "learning".
- Export the environment variables `HANABI_USERNAME` and `HANABI_PASSWORD` for the bot to log in.
13
13
- You'll need to create its account on hanab.live first.
14
14
- Run `npm start` to start the bot.
15
-
- If you want to run multiple bot accounts using one env file, export environment variables with a number at the end (like `HANABI_USERNAME2`) and use `npm start -- index=2`.
15
+
- If you want to run multiple bot accounts using one env file, export environment variables with a number at the end (like `HANABI_USERNAME2`) and use `npm start -- index=2`. See `.env.template` for an example.
16
16
17
17
## Supported commands
18
-
Send a PM to the bot on hanab.live to interact with it.
18
+
Send a PM to the bot on hanab.live (`/pm <HANABI_USERNAME> <message>`) to interact with it.
19
19
-`/join [password]` to join your current lobby. The bot will remain in your table until it is kicked with `/leave`.
20
20
-`/rejoin` to rejoin a game that has already started (e.g. if it crashed).
21
21
-`/leave` to kick the bot from your table.
22
22
-`/create <name> <maxPlayers> <password>` to have the bot create a table. The name can't have spaces.
23
-
-`/start <tableId>` to have the bot start the game (only works if it created the table).
23
+
-`/start` to have the bot start the game (only works if it created the table).
24
+
-`/settings [conventions='HGroup'] [level]` to set or view the bot's conventions and level. The bot plays with H-Group conventions at level 1 by default.
24
25
25
26
Feel free to report any issues [here](https://github.com/WillFlame14/hanabi-bot/issues)!
0 commit comments