Simple YouTube playback bot for Discord. Warning: Lethe is absolutely not stable at all! It is likely to either not run at all or crash soon after running. If you experience anything like that, please report an issue!
- The ones in package.json
- ffmpeg, it needs to be installed and in your path
Also, you will get crashes when doing certain things unless you comment out line 476 of processor.js
in node_modules/fluent-ffmpeg/lib
(should look like emitEnd(new Error('Output stream closed'));
). There is a way around this but I haven't found it yet.
Run Lethe using the email and password as command line arguments:
$ node lethe.js email@example.com hunter2 YouTube-api-key(optional)
Then, run commands over Discord using the bot's username mention as a prefix, for example:
@Bot init
Where "Bot" is your bot's username.
init [voice channel name]
: Initializes Lethe and binds it to the text channel this command was run in and the specified voice channel. If no voice channel was specified, the first available one will be used (usually General).
destroy
: Destroys Lethe's binding. This stops the current playback and unbinds it from the text and voice channel.
The following commands will only work inside the text channel Lethe was bound to.
yt [id]
: Queues a video from YouTube to be played. If this is the only song in the queue, start playback. queue [id]
does the same thing.
list
: Lists the videos on the queue.
next
: Stops the current playback and skips to the next video in the queue.
yq [search-value]
: Searches a youtube video that matches the search value.
pl [playlist-id]
: Queues the 50 first videos of a playlist.