Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stjohnjohnson/extralife-discord-bridge
Bring your Extra-Life donations directly to your Discord channel
https://github.com/stjohnjohnson/extralife-discord-bridge
discord extra-life extralife hacktoberfest
Last synced: about 1 month ago
JSON representation
Bring your Extra-Life donations directly to your Discord channel
- Host: GitHub
- URL: https://github.com/stjohnjohnson/extralife-discord-bridge
- Owner: stjohnjohnson
- License: apache-2.0
- Created: 2022-10-03T05:56:39.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-12T21:31:00.000Z (about 2 months ago)
- Last Synced: 2024-12-08T13:46:12.751Z (about 1 month ago)
- Topics: discord, extra-life, extralife, hacktoberfest
- Language: JavaScript
- Homepage:
- Size: 50.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# extralife-discord-bridge
Bring your Extra-Life donations directly to your Discord channel## Running
```bash
$ 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
```## 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.