diff --git a/Dockerfile b/Dockerfile index 4eb8f30..090682e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,5 @@ RUN pip install --no-cache-dir -r requirements.txt COPY . . -RUN mv .env.example .env - CMD python bot.py diff --git a/README.md b/README.md new file mode 100644 index 0000000..d503bef --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# 🎵 Jellyfin Discord Bot + +A Discord bot that plays music directly from your **Jellyfin** media server, using slash commands and voice channel support! + +## 🚀 Features + +- `/play [title]` — Plays the first matching song from your Jellyfin library in your current voice channel. +- `/search [title]` — Lists the top 5 matches for a song query from Jellyfin. diff --git a/bot.py b/bot.py index 7c5ba11..c272d47 100644 --- a/bot.py +++ b/bot.py @@ -23,7 +23,6 @@ class JellyfinBot(commands.Bot): super().__init__(command_prefix="/", intents=intents) async def setup_hook(self): - # self.tree.copy_global_to() await self.tree.sync() bot = JellyfinBot() diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..be1147d --- /dev/null +++ b/compose.yaml @@ -0,0 +1,9 @@ +services: + jellyfinbot: + build: . + container_name: jellyfinbot + restart: unless-stopped + environment: + - JELLYFIN_URL= + - JELLYFIN_API_KEY= + - JELLYFIN_USER_ID= \ No newline at end of file