-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
add93db
commit 4aa6b84
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
|
||
 | ||
|
||
# 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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: { } |