fixing again
This commit is contained in:
parent
dfc7dd45c4
commit
2a72b2da44
2
power.py
2
power.py
@ -96,7 +96,7 @@ def send_discord(message):
|
|||||||
finally:
|
finally:
|
||||||
await client.close()
|
await client.close()
|
||||||
await client.start(bot_token)
|
await client.start(bot_token)
|
||||||
asyncio.run((message_send))
|
asyncio.run(message_send())
|
||||||
|
|
||||||
def pwr_offline(battery):
|
def pwr_offline(battery):
|
||||||
message = f"{ups_id} UPS is running on battery power! {battery}% charge remaining."
|
message = f"{ups_id} UPS is running on battery power! {battery}% charge remaining."
|
||||||
|
Loading…
Reference in New Issue
Block a user