Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.