Sneyra is a music bot (yeah, another bot in this world) built on top of Klasa, and uses Discord.js to connect to the Discord API.
For a most advanced version in TypeScript, please check out Aelia.
- All basic music bot commands, included skip prompting (based on the 40% of users connected to the voice channel, after 4 users).
- An echo command, because, why not?
- Clean code, easy to modify. Fully modular and classbased.
- Full Music Handler interface and caching, make sure she replies 'smartly'!
git
command line (Windows|Linux|MacOS) installednode
Version 8.1.0 or higherffmpeg
:npm install --global ffmpeg-binaries
node-opus
:npm install node-opus
(alternatively you can use opusscript, but it's very bad for production, has memoryleaks and stream/quality issues).- A good network connection.
In a command prompt in your projects folder (wherever that may be) run the following:
git clone https://github.com/kyranet/Sneyra
Once finished:
- In the folder from where you ran the git command, run
cd Sneyra
and then runnpm install
- Rename
config.json.example
toconfig.json
- Edit
config.json
and enter your bot token and the YouTube Search API token. - NEVER UPLOAD THIS FILE WITH YOUR TOKENS ANYWHERE, TO DO SO, YOU ARE LETTING OTHER PEOPLE USE THE TOKEN TO DESTROY ALL THE GUILDS YOUR BOT IS IN. IF YOU DID, RESET YOUR TOKEN IN DISCORD'S APPLICATION PAGE.