Bring your Extra-Life donations directly to your Discord channel
$ docker run --rm -it --env-file .env stjohnjohnson/extralife-discord-bridge:latest
> [email protected] start
> node app.js
[2022-10-05T06:22:08.636Z] Bot Online
[2022-10-05T06:22:08.637Z] Found Donation Channel: 1026381181073240134
[2022-10-05T06:22:08.638Z] Found Summary Channel: 1026899238338179182
[2022-10-05T06:22:42.594Z] Donation: St. John Johnson / $31.00
Set the following environment variables:
DISCORD_TOKEN
: Your Bot TokenDISCORD_DONATION_CHANNEL
: ID of the channel to write donations toDISCORD_SUMMARY_CHANNEL
: ID of the channel to update the title ofEXTRALIFE_PARTICIPANT_ID
: Participant ID from Extra Life
The Discord bot requires Send Messages
and Manage Channel
permissions.
Every 30s the bot checks ExtraLife to see if there are any donations for that participant.
If there are new donations, it posts them in the channel you specified.
After each donation, the bot also updates the specified channel title to show the total & percent raised.