MJDeligan

Discord Soundbot

This was a project I wrote for a discord server I was in that allowed you to play sounds through a discord bot. During Corona, I spent a lot time at home and because I couldn't meet people in person, a lot of that time was spent on Discord with friends. Back then, the built-in soundboad did not yet exist and we often played sounds from our phones over the microphone to achieve the same effect. Over the course of a couple of days I built a discord bot, that would join the user's channel on command and play sounds from .mp3 files. I later added functionality to ban people from using the bot, because of course some people couldn't help themselves but spam sounds every chance they got :)

Technologies

The project is written in Python and primarily uses the discord.py module to handle the interaction with discord. To play the sounds, the module requires ffmpeg, however little to no direct control of the program is required. For maintaining a persisted list of banned users, I used Sqlite and the library aiosqlite for asynchronous querying.

Critiques

This was my first project using the discord.py module and was not planned out. I was building this while in the voice chat, testing it as I coded along. As such, the project was very messy at the beginning and I wouldn't call it my finest work. Despite this, the bot did its job and brought us much joy and many fun memories.

Media

No media available