publish eve_rock_watcher.py
This commit is contained in:
parent
6b631026ec
commit
cdc5bd1361
1 changed files with 2 additions and 1 deletions
|
|
@ -23,6 +23,7 @@ Only active during a mining session: start one with `!mining on` in Discord
|
|||
import json
|
||||
import os
|
||||
import re
|
||||
import socket
|
||||
import sys
|
||||
import time
|
||||
|
||||
|
|
@ -261,7 +262,7 @@ def main():
|
|||
line = f"🪨 {ore.title()} {units:,} u · empties <t:{empty_at}:R>"
|
||||
if nxt:
|
||||
line += f" · next: {nxt[0].title()} ({nxt[1]:,} u)"
|
||||
w._discord_live(cp, "rock", "Mining — current rock", line)
|
||||
w._discord_live(cp, "rock", f"⛏️ {socket.gethostname()} current rock", line)
|
||||
last_status = now
|
||||
except Exception as e:
|
||||
print(f"[rock] error: {e}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue