A featureful Discord music bot, made with hikari, hikari-tanjun and lavasnek_rs on Python 3.10.5.
- This reposity is no longer maintained. A rewrite will be developed on this repo
⚠️ The bot is no longer hosted.- You can DM me on Discord (
Fridella#0777) or ask in Lýra's support server for more information
- Please consider supporting the bot by pressing the
❤️ Sponsorbutton at the top!
-
Set up a MongoDB Atlas Database
-
Create & fill these files with the necessary info:
-
.envGENIUS_ACCESS_TOKEN="..." LYRA_DEV_TOKEN="..." # unused if dev_mode is false LYRA_TOKEN="..." LAVALINK_HOST="lavalink" LAVALINK_PWD="..." LAVALINK_PORT="..." MONGODB_PWD="..." MONGODB_CONN_STR="..." # replace the pwd in the str with %s SOUNDCLOUD_CLIENT_ID="..."
-
config.ymldev_mode: false # true/false prefixes: - '...' emoji_guild: 777069316247126036 # do not change this guilds: # unused if dev_mode is false - ...
-
-
Obtain these files
headers_auth.json(Instructions here)
? You can get the Soundcloud Client ID from here
? Feel free to change internal constant and configs in lyra/src/lib/consts.py and add your own EQ bands in bands.yml
-
Run
sudo docker-compose up^You can also add the-dflag to run the containers in detached mode
-
In the
lavalink-localfolder∨Options for Windows and Linux are superscripted withwinandnixrespectively-
Get the latest build of
Lavalink.jar∨Yourlavalink-localfolder should look like thislavalink-local ├──jdk-13.0.2 -- maybe symlink │ └──... ├──application.yml.dev -- lavalink config, feel free to edit └──Lavalink.jar
-
Run
(cd lyra && pip install -Ur requirements.txt)^If that doesn't work, trypip3instead^If you prefer having a venv, run(cd lyra && python -m venv .venv && . lyra/.venv/bin/Activate.ps1 && pip install -Ur requirements.txt)ʷᶦⁿ |(cd lyra && python -m venv .venv && . lyra/.venv/bin/activate && pip install -Ur requirements.txt)ⁿᶦˣ -
Run
scripts/server.batwin |scripts/servernix and wait for Lavalink to finish starting up -
Run
scripts/bot.batwin |scripts/botnix to start the bot up^To run the bot in debug mode, runscripts/bot-debug.batʷᶦⁿ |scripts/bot-debugⁿᶦˣ
- Run
pip install -r dev_requirements.txt - Run
scripts/tggldev [OPTIONS]...to toggle between dev modes
--dev,-d: The dev mode. Possible values aret | Tfor On andf | Ffor Off. If this option was not given, the mode will be toggled from the previous state.
