A Discord bot that play sound effects in voice channel on command. Now with Additional Doot
- Python 3.7
- Discord.py rewrite library
- Discord bot account with token (obtainable through the Discord Developer Portal)
- aiohttp library
- Install pre-requisites
- Copy bot files to location where you want to store them
- Replace 'token' in main.py with token
- Open CMD/PowerShell/Terminal and navigate to folder with bot files
- Type
python main.py
(if it will not work trypython3.7 main.py
- Wait until bot logs in to Discord
Replace command_syntax and file_name respectively with: command used to play sound and filename of sound
@commands.command()
@commands.guild_only()
async def command_syntax(self, ctx):
"""command_description"""
await play_file(ctx, "sounds/file_name.mp3")
Bot and support server images were created by Freepik from www.flaticon.com and are under Creative Commons BY 3.0 licence