https://github.com/tomasfarias/clips
A Discord bot to query Twitch.tv clips
https://github.com/tomasfarias/clips
discord-bot go twitch-api
Last synced: about 2 months ago
JSON representation
A Discord bot to query Twitch.tv clips
- Host: GitHub
- URL: https://github.com/tomasfarias/clips
- Owner: tomasfarias
- License: mit
- Created: 2020-06-08T05:53:52.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-20T23:24:04.000Z (almost 5 years ago)
- Last Synced: 2024-05-07T18:21:16.687Z (about 1 year ago)
- Topics: discord-bot, go, twitch-api
- Language: Go
- Size: 31.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Clips [](https://travis-ci.com/tomasfarias/clips) [](https://goreportcard.com/report/github.com/tomasfarias/clips)
A Discord bot to look for Twitch clips!
## Requirements
The bot requires a Twitch Application Client ID and Client Secret, which can be found in the [Applications console](https://dev.twitch.tv/console/apps). From the Discord side, we require a Token for our Bot user which we can obtain by navigating into the bot users of our application in the [Developer Portal](https://discord.com/developers/applications). These credentials correspond to the following flags:
* `-t`: Discord Bot token
* `-c`: Twitch Client ID
* `-s`: Twithc Client SecretIt is recommended to define the credentials in an `.env` instead of directly passing them as command line arguments.
## Running with Docker
Define your credentials in an `.env` file:
```
TOKEN=discord-token
CLIENT_ID=twitch-client-id
CLIENT_SECRET=twitch-client-secret
```Build and run the container pointing to your `.env` file:
```
docker build --tag clips:1.0 .
docker run -d --env-file /path/to/.env --name clips clips:1.0
```Once it's running, your Discord Bot user will need to be invited to your Discord server.