IANetworks / Ducky-Mc-Duckerson

A Discord Bot for the Guns of Icarus Online / Alliance Discord.
GNU General Public License v3.0
8 stars 3 forks source link

Display list of themes on web frontend #21

Open AbbyCottontail opened 7 years ago

AbbyCottontail commented 7 years ago

Displays a list of of themes that can be selected with ducky

LucileDT commented 7 years ago

Same as #20: could you add details of how the thing would works?

AbbyCottontail commented 7 years ago

Still considering the implementation details of it. The front end of itself, now, data is stored in sqlite, that's not a problem side of the things, I'm trying to think ahead with ideas that may come up, and one idea is displaying user profile, there's some information that comes from discord itself and some that come from sqlite, so would that interaction would happen.

At the moment, I'm considering php for the web backend of things for ease of development however there's the discord interaction and there's several solution to it. Let me copy/paste from the discord chat.

Hey, programmer incline @Ducky's-fans I have a question, for the php frontend, I want to access some of the data from discord API, (such as user nicknames, and so forth) Now, I can think of several ways that could this could be achieved, one is to spin up the PHP Discord API https://github.com/teamreflex/DiscordPHP, https://github.com/restcord/restcord (to name a few), to creating restful API with Java https://www.playframework.com/ PHP could call, and finally there's a bridge http://php-java-bridge.sourceforge.net/pjb/ (for one example) And I'm honestly not sure which method to aim for, now for the record, I want to mention that more than one program can access the same token, (so in theory you could have many bot program accessing the same token if need be, not sure what's the limit is)

I can think of a few pros and cons of each method but I want to hear the opinions and ideas from others.

LucileDT commented 7 years ago

If I understand well, it's an other project, which would be the creation of a website?

AbbyCottontail commented 7 years ago

That's actually a good point, I will create a project called Ducky's Website

LucileDT commented 7 years ago

I think you should probably need to create a new repository for the website (unless you want to mix the bot code and the website code into one big pack, but in my opinion, it's gonna be messy if you do it that way).