From 2db063ab89ba7cbb4c25b08d21895a39da1a1c1a Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Fri, 28 Jan 2022 17:16:47 +0000 Subject: [PATCH] Add boilerplate code for topup notifications --- handler/notify.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/handler/notify.py b/handler/notify.py index c2dda75..2c1484c 100644 --- a/handler/notify.py +++ b/handler/notify.py @@ -43,3 +43,6 @@ class Notify(object): def notify_withdrawal(self, amount_usd): self.sendmsg(f"Total: {amount_usd}", title="Withdrawal", tags="profit") + + def notify_need_topup(self, amount_usd_xmr, amount_usd_btc): + self.sendmsg(f"XMR: {amount_usd_xmr} | BTC: {amount_usd_btc}", title="Topup needed", tags="admin")