More verbosity...

main
BurnyLlama 2022-05-27 14:55:32 +02:00
parent ae3c53ac6f
commit 2fe077592a
3 changed files with 8 additions and 3 deletions

View File

@ -10,4 +10,9 @@ log("Starting up notifiers...")
const enabledNotifiers = Object.keys(settings.notifiers).filter(notifier => settings.notifiers[notifier].enabled)
const notifiers = await Promise.all(enabledNotifiers.map(notifier => getNotifier(notifier)))
notifiers.forEach(notifier => notifier("Started up 'maintenance-bot'..."))
log("Starting up checkers...")
log("Sending out start-up messages...")
notifiers.forEach(notifier => notifier("Started up 'maintenance-bot'..."))
log("Start up complete!")

View File

@ -11,7 +11,7 @@ export async function start() {
async function sendMessage(msg) {
const receivers = await Promise.all(settings.notifiers.discord.receivers.map(id => client.users.fetch(id)))
log("Sending messages to:", receivers.map(e => e.tag))
log("Sending messages to:", receivers.map(e => e.tag), "\nMessage:", msg)
receivers.forEach(async receiver => {
await receiver.createDM()
await receiver.send(msg)

View File

@ -19,7 +19,7 @@ export async function start() {
async function sendMessage(msg) {
const receivers = settings.notifiers.xmpp.receivers
log("Sending messages to:", receivers)
log("Sending messages to:", receivers, "\nMessage:", msg)
const stanzas = receivers.map(
address => xml(
"message",