This is a Python Discord bot that plays sound files in voice channels.
- Install Python 3.8 or later
- Install the discord.py library with
python3 -m pip install -U discord.py[voice]
- Clone the repository or download the source code
- Create a file called
token.txt
in the root directory and paste your bot token inside it - Create a directory called
sounds
in the root directory and add your sound files in.mp3
format
- Start the bot by running the
bot.py
file usingpython bot.py
- Invite the bot to your server using the invite link provided in the console
- In any text channel, use one of the available commands to play a sound in your voice channel
/list
: Lists all available sound files/ping
: Mentions the user who called the command/input [arg]
: Repeats the argument passed by the user/join
: Joins the user's current voice channel/leave
: Leaves the current voice channel/play [query] [volume]
: Plays the sound file with the given name in the current voice channel. The optionalvolume
parameter is a number between 0 and 100.
If you find any bugs or issues with the bot, feel free to open an issue or submit a pull request.