KGT1/jellyfin-discord-music-bot
Fork: 14 Star: 83 (更新于 2024-10-24 15:55:43)
license: MIT
Language: JavaScript .
Jellyfin Discord Music Bot is a Discord Bot for the Jellyfin Media Server!
最后发布版本: V0.1.0 ( 2020-10-06 07:04:01)
⚠️ WARNING: UNMAINTAINED PROJECT
This project is unmaintained and only works with Jellyfin versions ≤ 10.7.x.
For a maintained rewrite compatible with Jellyfin versions >10.8.x by the wonderful manuel-rw, visit: jellyfin-discord-music-bot.
If you decide to run this with an older Jellyfin version, please be aware of potential security implications, both for Jellyfin and this bot, as well as its dependencies.
Jellyfin Discord Music Bot
Jellyfin Discord Music Bot is a Discord Bot for the Jellyfin Media Server!
Capabilities
Play to
Just summon
the Bot into your Channel, than choose the Bot in Jellyfin as the Device you want to cast to
and start playing you favourite Music
Interactive Play Message
When you start playing something you can easily controll the Bot with just clicking on the Buttons under the Play Message
Commands
Beware that you'll always need to add your prefix(default: ?) in front of the command.
Command | Description |
---|---|
summon | Join the channel the author of the message(now you can cast to the Bot from within Jellyfin) |
disconnect | Disconnect from all current Voice Channels |
play | Play the following item(can be the name of the song or the Stream URL) |
add | Add the following item to the current playlist |
pause/resume | Pause/Resume audio |
seek | Where to Seek to in seconds or MM:SS |
skip | Skip this Song |
spawn | Spawns an Interactive Play Controller |
help | Display the help message |
Limitations
- No Playlist Repeat Mode.
- Multi Server support.
- Playing Video Content (if Discord ever adds this, I'll implement it into this Bot)
Getting Started
You'll need a Discord Application for this Bot to work, as you will host it yourself.
Click New Application.
The Name of the application will be the bot's name.
Go to the Bot tab.
Generate the bot, and grab the token. Also, recommend making the bot private.
Go to the OAuth2 page, click Bot Scope to get the url authorization link.
Authorize your room!
Next, join a voice channel and connect your bot with ?summon. This will connect your bot to the voice channel you're in and will create the device profile in Jellyfin.
From within Jellyfin, start playing content or from within Discord, use the bot commands to start enjoying music!
For official documentation to creating a bot.
How to invite the Bot to your server
The simplest way to get started is using Docker:
docker run -d \
--name jellyfin-discord-music-bot \
-e DISCORD_PREFIX="?" \
-e DISCORD_TOKEN="yourtokengoeshere" \
-e JELLYFIN_SERVER_ADDRESS="https://jellyfin.DOMAIN" \
-e JELLYFIN_USERNAME="" \
-e JELLYFIN_PASSWORD="" \
-e JELLYFIN_APP_NAME="Jellyfin Discord Music Bot" \
-e MESSAGE_UPDATE_INTERVAL="2000" \
--restart unless-stopped \
kgt1/jellyfin-discord-music-bot
MESSAGE_UPDATE_INTERVAL is the amount of time in ms the play message gets updated with the current time
Alternatively you can run the Application natively with NodeJS:
Dependencies:
- npm 6.14.6
- NodeJS v12.18.3
- ffmpeg 4.2.4
git clone https://github.com/kgt1/jellyfin-discord-music-bot.git
cd jellyfin-discord-music-bot
npm install
edit config.json and add your token,server-address etc.
npm run start
How to build
git clone https://github.com/kgt1/jellyfin-discord-music-bot.git
cd jellyfin-discord-music-bot
docker build -t YOUR_IMAGE_NAME .
最近版本更新:(数据更新于 2024-10-12 09:19:14)
2020-10-06 07:04:01 V0.1.0
主题(topics):
discord, discord-bot, discord-js, jellyfin, node, nodejs
KGT1/jellyfin-discord-music-bot同语言 JavaScript最近更新仓库
2024-11-05 19:13:47 jerryc127/hexo-theme-butterfly
2024-11-05 13:53:42 LiteLoaderQQNT/LiteLoaderQQNT
2024-11-03 02:40:36 chris81605/Degrees-of-Lewdity_Cheat_Extended
2024-11-01 21:55:46 projectdiscovery/nuclei-templates
2024-11-01 19:24:44 NumberSir/DoL-I18n-Build
2024-11-01 12:25:14 midoks/mdserver-web