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

https://github.com/superauguste/disdb

Discord ToS!!
https://github.com/superauguste/disdb

Last synced: 4 months ago
JSON representation

Discord ToS!!

Awesome Lists containing this project

README

          

# disdb

Storing data on Discord!

# Bot Commands

- **/list**: see the files stored in disdb
- **/play **: play a file from disdb in your channel!
- **/preview **: see that file. we know you want to.
- **/record**
- **/record start**: start recording in the voice channel that you're in!
- **/record stop**: stop the recording and upload the recordings to disdb
- **/delete**
- **/delete **: wipes a file from disdb
- **/delete**: delete all the files. like all of them.

# Web Interface

- **upload**: for when you want to host _The Room (No Sex Scenes)_ in a discord channel
- **delete**: kill that file
- **preview**: (try to) see that file
- **download**: yes, you can download _The Room_. enjoy, discord.

# Technical Stuff

## p2p

We tried p2p uploads. Tried would be the key word. It's almost there, we promise.

## .env

```
TOKEN=
PORT=8080
```

## Heroku

- Set up a heroku app
- `heroku config:set TOKEN= BASE_URL=`

## Project Structure

### SRC

- **index.js** initializes the app, discord client, and the app endpoints.
- API Handlers live in **controllers.js**
- The main bot logic lives in **discord.js**
- Common functionality shared between the discord client and the api lives in **common.js**. This includes service-insensitive variables like the baseUrl and helpers like **uploadBuffer**.