Skip to content

stjohnjohnson/extralife-discord-bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

extralife-discord-bridge

Bring your Extra-Life donations directly to your Discord channel

Running

$ docker run --rm -it --env-file .env stjohnjohnson/extralife-discord-bridge:latest
> extralife-discord-bridge@2.0.0 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

Configuration

Set the following environment variables:

  • DISCORD_TOKEN: Your Bot Token
  • DISCORD_DONATION_CHANNEL: ID of the channel to write donations to
  • DISCORD_SUMMARY_CHANNEL: ID of the channel to update the title of
  • EXTRALIFE_PARTICIPANT_ID: Participant ID from Extra Life

Discord Bot

The Discord bot requires Send Messages and Manage Channel permissions.

Features

Every 30s the bot checks ExtraLife to see if there are any donations for that participant.

Donation Stream

If there are new donations, it posts them in the channel you specified.

Summary Channel

After each donation, the bot also updates the specified channel title to show the total & percent raised.