publish eve_orehold_watcher.py
This commit is contained in:
parent
d49c570fd1
commit
383a4491c4
1 changed files with 7 additions and 2 deletions
|
|
@ -166,8 +166,13 @@ def bot_muted(cp):
|
||||||
|
|
||||||
|
|
||||||
def bot_mining(cp):
|
def bot_mining(cp):
|
||||||
"""True when a mining session is active (started via `!mining on` in Discord)."""
|
"""True when a mining session is active (started via `!mining on` in Discord) AND not
|
||||||
return _bot_state(cp)["mining"]
|
locally auto-paused. The combat watcher drops a `.mining_paused` marker when mining has
|
||||||
|
genuinely stopped (you quit / warped off) so every watcher goes quiet without you having
|
||||||
|
to `!mining off`; it removes the marker the moment ore starts flowing again."""
|
||||||
|
if not _bot_state(cp)["mining"]:
|
||||||
|
return False
|
||||||
|
return not os.path.exists(os.path.join(HERE, ".mining_paused"))
|
||||||
|
|
||||||
|
|
||||||
def notify(cp, title, message, priority="high", tags="rock,bell"):
|
def notify(cp, title, message, priority="high", tags="rock,bell"):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue