Skip to content

Commit ddb4d65

Browse files
committed
payload example
1 parent bc5bf05 commit ddb4d65

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

README.md

+25-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Civ5 Pitboss WebHook
1+
# Civ5 Pitboss Webhook
22
Adds webhooks to Sid Meier's Civilization 5 games. Install this on your pitboss server to be notified anytime a player starts/ends their turn or connects/disconnects.
33

44
## How to use
@@ -19,6 +19,30 @@ LoggingEnabled = 1
1919

2020
6. Run the `Watchlog.ps1` script. Note that you may need to manually open a powershell console, `cd` to the logs directory, and then run the script. Windows does not seem able to automatically open a powershell console in a folder which contains an apostrophe `'`, which is the case with the default game directory.
2121

22+
## Game State Payload
23+
Civ5 Pitboss Webhook will send an HTTP POST request with a JSON body.
24+
```json
25+
{
26+
"gameTurn": 118,
27+
"players": [
28+
{
29+
"id": 1,
30+
"nickName": "Atreides",
31+
"isTurnComplete": false,
32+
"isOnline": true,
33+
"isAlive": true
34+
},
35+
{
36+
"id": 2,
37+
"nickName": "bobby_joe",
38+
"isTurnComplete": true,
39+
"isOnline": false,
40+
"isAlive": true
41+
}
42+
]
43+
}
44+
```
45+
2246
## Troubleshooting
2347

2448
### The powershell script shows red text and immediately stops!

0 commit comments

Comments
 (0)