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
❤️ Sponsor
button at the top!
-
Set up a MongoDB Atlas Database
-
Create & fill these files with the necessary info:
-
.env
GENIUS_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.yml
dev_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-d
flag to run the containers in detached mode
-
In the
lavalink-local
folder∨
Options for Windows and Linux are superscripted withwin
andnix
respectively-
Get the latest build of
Lavalink.jar
∨
Yourlavalink-local
folder 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, trypip3
instead^
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.bat
win |scripts/server
nix and wait for Lavalink to finish starting up -
Run
scripts/bot.bat
win |scripts/bot
nix 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 | T
for On andf | F
for Off. If this option was not given, the mode will be toggled from the previous state.