nationalcollegiateesports / discord-bot

MIT License
2 stars 0 forks source link

Website for configuration stuff? #6

Closed themaxdavitt closed 3 years ago

themaxdavitt commented 3 years ago

Provide an interface for server owners/admins to change settings for their server without needing to contact the bot admins.

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

themaxdavitt commented 3 years ago

Sounds like a plan to me - Express, Vue, and Bulma/Buefy are all great choices IMO.

themaxdavitt commented 3 years ago

Also, closing this in favor of #9 also.