Skip to content

Commit

Permalink
Add README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed May 19, 2023
1 parent add93db commit 4aa6b84
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# tonbrett

Tonbrett (literal german translation of Soundboard) is a Discord Soundboard with a Web UI made
using [Mikbot](https://github.com/DRSchlaubi/mikbot) and
[Compose Multiplatform](https://github.com/JetBrains/compose-multiplatform)

![image](https://github.com/kordlib/kord/assets/16060205/08b70fd0-fbc5-4701-b2f9-e2098ebbd527)

# Commands

| Name | Description |
|---------------|---------------------------------|
| /sound add | Creates a new sound |
| /sound remove | Deletes a sound |
| /sound update | Updates a sound |
| /sound play | Shows the URL to the web player |
| /join | Makes the bot join your channel |

# Requirements
- [Docker](https://docs.docker.com/engine/install/)
- [Docker Compose](https://docs.docker.com/compose/install/)
- [Lavalink](https://github.com/lavalink-devs/Lavalink#server-configuration)

# Setup
1. Download [docker-compose.yml](https://github.com/DRSchlaubi/tonbrett/blob/main/docker-compose.yaml)
2. Follow Lavalink setup steps from [here](https://github.com/DRSchlaubi/mikbot/tree/main/music#setup)
3. Create a reverse proxy for container port `8080` with websocket support
[(Example)](https://www.nginx.com/blog/websocket-nginx/)

# Project Structure

| Path | Description |
|--------------------------|-------------------------------------------------------|
| [common](common) | Common entities and Routes between web player and bot |
| [client](client) | Multiplatform client for API |
| [app](app) | Root projects for App |
| [app:shared](app/shared) | Multiplatform UI code for App |
| [app:web](app/web) | Web launcher for app using Kotlin/JS |
22 changes: 22 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: '3.8'

services:
mongo:
image: mongo
environment:
MONGO_INITDB_ROOT_USERNAME: bot
MONGO_INITDB_ROOT_PASSWORD: bot
volumes:
- mongo-data:/data/db
bot:
image: ghcr.io/drschlaubi/tonbrett:main
env_file:
- .env
depends_on:
- mongo
volumes:
- ./sounds:/usr/app/sounds
ports:
- "127.0.0.1:8080:8080"
volumes:
mongo-data: { }

0 comments on commit 4aa6b84

Please sign in to comment.