leovander / torihiki

Telegram and Discord-Self bot, that forwards Discord messages to Telegram
GNU Affero General Public License v3.0
0 stars 0 forks source link

Send message to Admin on errors #5

Open leovander opened 4 months ago

leovander commented 4 months ago

Either send direct messages via Telegram to configured admins or take a look at implementing Apprise.

Specifically, https://github.com/caronc/apprise?tab=readme-ov-file#developer-api-usage in order to allow other bot users to send notifications outside of telegram and discord to get error messages.

leovander commented 4 months ago

🤦‍♂️ Apprise is only a python project... Going to setup default error notification to telegram and maybe look at doing a pushover call.

I started adding in an API call to https://pushover.net/api as a backup but I think I am dealing with a circular dependency where adding this call is pulling in a resource before it is ready.

Leaving the placeholder in src/lib/utilities#sendAdminError for when ready to revisit this. If container completely dies I will currently get kuma notifications.

leovander commented 4 months ago

I did have a block to message all admins, but that is mostly what throws off the dependencies when I attempt to fetch admins from cache.