I started working on a new Discord bot (again)
A music bot that uses discord.py and Lavalink. I'll be updating it with some of the fun ideas I have in mind.
- Python 3.8 or newer
- Latest LTS release of Java
- Download the latest Lavalink release and paste it into the main directory of the project.
- Configure
application.ymlconfig file for Lavalink or grab the example one and run Lavalink:
java -jar Lavalink.jar
- Create a
.envfile containing the bot token and the Lavalink server credentials as following:
BOT_TOKEN=YOUR_BOT_TOKEN_GOES_HERE
LAVALINK_HOST=LAVALINK_HOST_ADDRESS_GOES_HERE
LAVALINK_PORT=LAVALINK_PORT_GOES_HERE
LAVALINK_PASS=LAVALINK_PASSWORD_GOES_HERE
- Create a virtual environment for the bot (so you don't accidentally mess up some libs used by the system):
pipenv shell
- Install all project dependencies:
pip install -r requirements.txt
- Run the bot:
python bot.py
Stuff used for the project: discord.py (by Rapptz), Lavalink, Pomice wrapper (by cloudwithax)