| .. | ||
| board_data.py | ||
| config.json | ||
| monopbot.py | ||
| parser.py | ||
| README.md | ||
| requirements.txt | ||
monop-board IRC Bot
Watches an IRC channel for monop-irc game output and writes game-state.json.
Setup
pip install -r requirements.txt
Configuration
Edit config.json:
{
"server": "irc.darkscience.net",
"port": 6697,
"tls": true,
"nick": "monopbot",
"channel": "#your-channel",
"game_nick": "monop",
"state_file": "../game-state.json"
}
game_nick— the IRC nick of the monop-irc game processstate_file— where to write the JSON game state (relative to bot dir)
Usage
python3 monopbot.py
Or with a custom config:
MONOPBOT_CONFIG=/path/to/config.json python3 monopbot.py
The bot will:
- Connect to IRC and join the configured channel
- Watch for messages from the game bot
- Parse game events (rolls, moves, purchases, rent, etc.)
- Write updated state to
game-state.jsonafter each change