Compare commits
2 commits
c881abcba8
...
8b147082f9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8b147082f9 | ||
|
|
9efd264d6b |
1 changed files with 3 additions and 2 deletions
5
main.py
5
main.py
|
|
@ -1,6 +1,7 @@
|
|||
import json
|
||||
import requests
|
||||
from dotenv import dotenv_values
|
||||
from datetime import datetime
|
||||
|
||||
config = dotenv_values(".env")
|
||||
|
||||
|
|
@ -88,16 +89,16 @@ player_diff_formatted = "\n".join(player_diff) or " no one is here."
|
|||
|
||||
|
||||
payload = {
|
||||
"content": f"""---
|
||||
"content": f"""
|
||||
# status changed on {HOSTNAME}
|
||||
|
||||
```diff
|
||||
{playercount_diff_formatted}
|
||||
```
|
||||
|
||||
```diff
|
||||
{player_diff_formatted}
|
||||
```
|
||||
-# *at {datetime.now()}*
|
||||
"""
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue