mirror of
https://github.com/stronk-dev/RandomChad.git
synced 2025-07-05 10:35:08 +02:00
✨ context dependent discord webhooks
This commit is contained in:
parent
56b2c53a39
commit
a8e89a68ac
@ -330,6 +330,7 @@ exports.notify_holders_of_changing_room_updates = async context => {
|
|||||||
console.log( `Sent ${ owners_to_email.length } emails for ${ network } outfits` )
|
console.log( `Sent ${ owners_to_email.length } emails for ${ network } outfits` )
|
||||||
|
|
||||||
// Notify Discord too
|
// Notify Discord too
|
||||||
|
if( !owners_to_email.length ) return console.log( `Zero people to email, not sending Discord webhook` )
|
||||||
await notify_discord_of_outfit_notifications( owners_to_email.length, has_outfit_available.length )
|
await notify_discord_of_outfit_notifications( owners_to_email.length, has_outfit_available.length )
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user