Andrew-J-Larson / galnet-news-discord-bot

Gets news posts from Galnet News, for Elite Dangerous centered discord servers.
GNU General Public License v3.0
1 stars 1 forks source link

[Feature] Need support for multiple servers #2

Closed Andrew-J-Larson closed 3 years ago

Andrew-J-Larson commented 3 years ago

I'll work towards this after I've gotten the cache posts worked out.

I have two different ideas for how I might do this.

  1. I can just use the server id's to create, for example, [serverId].txt for each server's settings in a folder called servers, whereby their particular server settings will be stored (prefix, feed channel/role). All server settings will load in a single object that contains the server settings for easy access, e.g. { serverId1: { <- server settings in this object -> }, serverId2: { ... }}.

  2. I could just use a database like mySQL, but I would need to learn how to use one such a database, and this might come with the disadvantage that my bot would have to communicate with another program.

Andrew-J-Larson commented 3 years ago

Latest update should work on multiple servers now.