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