Closed themaxdavitt closed 3 years ago
My usual method of tackling stuff like this is to make a JSON API that authenticate users through Discord and read/update the database, then write a web application that talks to the API. Express is a good web server library that can be used for the API, and Vue has been my favorite frontend library for some time now. Bulma is a nice, customizable CSS framework, and it has a Vue-specific component library, Buefy.
I'd probably be basing a lot of the code for this off my work on https://github.com/r-anime/discord-mod-bot which has its web interface in the "web" directory. (That repo uses a module called polka
instead of express for its server; they work almost identically, but for this project I think I'd prefer express for its maturity and wider adoption.)
Sounds like a plan to me - Express, Vue, and Bulma/Buefy are all great choices IMO.
Also, closing this in favor of #9 also.
Provide an interface for server owners/admins to change settings for their server without needing to contact the bot admins.