Skip to content

A simple Discord bot written in Python for SoundBytes PH. Searches the matching user's DIY earbud driver search query and sends the info of that search!

License

Notifications You must be signed in to change notification settings

Yuuhei/diy-driver-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DIY Driver Bot

A simple Discord bot that shows useful information for DIY earbud drivers written in Python for SoundBytes PH.

How does it work?

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.

img

Setup

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.)

Contribution

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.)

Credits

All driver database are fetched and ported as json from DIY Workroom, so huge thanks to this useful guide!

Support

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

About

A simple Discord bot written in Python for SoundBytes PH. Searches the matching user's DIY earbud driver search query and sends the info of that search!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages