Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/katerberg/9th-seed

Twitch Bot and API for Vintage Rotisserie Draft
https://github.com/katerberg/9th-seed

Last synced: 8 days ago
JSON representation

Twitch Bot and API for Vintage Rotisserie Draft

Awesome Lists containing this project

README

        

# 9th Seed

A twitch bot designed to assist viewers of the [St Louis Vintage Rotisserie Draft](https://twitch.tv/stlvrd)

## Commands

## Docker setup

### Requirements

You will need `docker desktop` installed.

### Starting

Populate a `creds` folder with a `dbCreds.json` and a `twitchCreds.json`.

Example `dbCreds.json`:
```
{
"connectionLimit": 10,
"database": "stlvrd",
"host": "localhost",
"password": "YOUR_PASSWORD_HERE",
"user": "YOUR_USER_HERE"
}
```

Example `twitchCreds.json`:
```
{
"username": "YOUR_USER_HERE",
"password": "oauth:YOUR_OAUTH_HERE"
}
```

To run the environment hosted on docker, run the following:

```
docker-compose build
docker-compose up
```

## Non-Docker setup

### Requirements

You will need `npm` and `mysql` installed.

You will need a database called `stlvrd` created in mysql which is accessible to your user.

### Populating the Database

To get data into the database (which assists or is required for many of the features of 9th Seed, run

```
npm run db
```

### Starting

Populate a `creds` folder with a `dbCreds.json` and a `twitchCreds.json`.

Example `dbCreds.json`:
```
{
"connectionLimit": 10,
"database": "stlvrd",
"host": "localhost",
"password": "YOUR_PASSWORD_HERE",
"user": "YOUR_USER_HERE"
}
```

Example `twitchCreds.json`:
```
{
"username": "YOUR_USER_HERE",
"password": "oauth:YOUR_OAUTH_HERE"
}
```

Run the following to start your bot watching the channel.
```
npm install
npm start
```

## Code Quality

This project uses [Mocha](https://mochajs.org/) tests and [ESLint](eslint.org) to help ensure that it keeps working.