cordlr-cli icon indicating copy to clipboard operation
cordlr-cli copied to clipboard

Add Server Separation in Bot Loader

Open bdbch opened this issue 8 years ago • 0 comments

First we need to check all connected servers when the bot is connected here: https://github.com/Devcord/cordlr-cli/blob/4624e2951136dc8420d415473f5be5f929ceea20/bin/bot/index.js#L25

For each server connected, we need to check if the server is already "registered" in our database/storage, if not add it to the set of data.


https://github.com/Devcord/cordlr-cli/blob/4624e2951136dc8420d415473f5be5f929ceea20/bin/bot/index.js#L27

Here we need to add a check and specification for the server of the incoming message. Maybe we also allow direct messages while we're at it since they are now disabled. Lets do this in another issue.

When the message is handled, we need to pass the server ID into the plugin command so the plugin can work with different servers, load different configurations per server, etc. etc.

bdbch avatar Mar 21 '18 09:03 bdbch