A simple Discord bot that shows useful information for DIY earbud drivers written in Python for SoundBytes PH.
When a user search a specific driver term/specs/driver characteristics (ex: blue glue
), this code will search the driver-repo
folder for .json
file name that matches the search term, then print that searched .json
contents as a Discord embed.
Install requirements.txt pip3 install -r requirements.txt
Add your bot's token
in config.json
.
Configure your preferred prefix in prefix
(yes still using prefix in 2023, f*ck slash commands) and status.
Add your preferred bot response channel in channel_id
.
Put preferred bot response channel name in channel_name
Run main.py
That's it. test your bot on your server to see if it works. (Assuming your bot is already joined your server.)
This entire code is WIP, so some major changes can happen. Also i'm still noob at coding (specifically python), please spare me UwU
You can push a driver info in .json file if you want, just follow the template.json
inside driver-repo
folder.
Also, search result is based on file name, so be specific on that (add keywords that user might search, eg: 120ohm beryllium driver kaph white glue.json
something like that.)
All driver database are fetched and ported as json from DIY Workroom, so huge thanks to this useful guide!
You can join my Discord Server for support and everything else as long as it's audio gear topic.
Normal URL: https://discord.gg/mj2jbz3RWw
Vanity URL: https://discord.gg/soundbytesph