From 2c42c6769baef1e2caff1edebb6a28d0fa9a2f71 Mon Sep 17 00:00:00 2001
From: Johannes Heuel
Date: Fri, 7 Jun 2024 14:35:53 +0200
Subject: [PATCH 1/2] add deployment instructions to readme
---
README.md | 25 ++++++++++++++++++++++++-
docker-compose.yml | 8 --------
2 files changed, 24 insertions(+), 9 deletions(-)
delete mode 100644 docker-compose.yml
diff --git a/README.md b/README.md
index c275cee..d34b56b 100644
--- a/README.md
+++ b/README.md
@@ -6,4 +6,27 @@
# Deployment
-Create a `.env` environment file that contains the `DISCORD_TOKEN` and `DISCORD_APP_ID` of your bot, then build the container with `docker-compose build` before running it with `docker-compose up`.
+To deploy Ohrwurm with Docker, you can use the provided Docker image:
+```bash
+docker run -d \
+ --name ohrwurm \
+ --restart unless-stopped \
+ -e DISCORD_TOKEN=YOUR_DISCORD_BOT_TOKEN \
+ -e DISCORD_APP_ID=YOUR_DISCORD_APP_ID \
+ -e ADMIN=YOUR_DISCORD_USER_ID \
+ jheuel/ohrwurm:latest
+```
+
+Alternatively, you can create a `docker-compose.yml` file:
+```yaml
+services:
+ ohrwurm:
+ container_name: ohrwurm
+ image: jheuel/ohrwurm:latest
+ restart: unless-stopped
+ env:
+ - DISCORD_TOKEN=YOUR_DISCORD_BOT_TOKEN
+ - DISCORD_APP_ID=YOUR_DISCORD_APP_ID
+ - ADMIN=YOUR_DISCORD_USER_ID
+```
+and then run the image with `docker compose up`.
diff --git a/docker-compose.yml b/docker-compose.yml
deleted file mode 100644
index bc5e180..0000000
--- a/docker-compose.yml
+++ /dev/null
@@ -1,8 +0,0 @@
----
-services:
- ohrwurm:
- build: .
- container_name: ohrwurm
- restart: unless-stopped
- env_file:
- - .env
--
2.49.1
From 367b3adf094f1d1b3484c1e093979204407c1b0b Mon Sep 17 00:00:00 2001
From: Johannes Heuel
Date: Fri, 7 Jun 2024 14:45:49 +0200
Subject: [PATCH 2/2] add intro text
---
README.md | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index d34b56b..3014e29 100644
--- a/README.md
+++ b/README.md
@@ -5,8 +5,10 @@
Ohrwurm
+Ohrwurm is a user-friendly bot designed to play music in Discord voice chats. Once added to your server, you can request a song using the command `/play {query}`, where query can be a URL to a YouTube video or playlist, or a simple search term. The bot will fetch the song and start playing it. You can pause the music with `/pause`, resume playback with `/resume`, and stop and clear the queue with `/stop`. If the bot is alone in a voice chat, it will automatically leave, but you can also manually make it leave with the `/leave` command.
+
# Deployment
-To deploy Ohrwurm with Docker, you can use the provided Docker image:
+To deploy Ohrwurm with Docker, you can use the [provided Docker](https://hub.docker.com/r/jheuel/ohrwurm) image:
```bash
docker run -d \
--name ohrwurm \
@@ -17,6 +19,8 @@ docker run -d \
jheuel/ohrwurm:latest
```
+
+
Alternatively, you can create a `docker-compose.yml` file:
```yaml
services:
--
2.49.1