Closed dylanzemlin closed 6 years ago
We need the bot to stay connected, otherwise when a plugin is reloaded it will disconnect and re-connect with rapid succession. It's much more efficient to leave the bot connected for the lifespan of the server.
I would add something to restart the connection if it's spamming a web request exception. This will freeze up the server.
...that's not how we handle bugs 😛
Sure sir, just wanted to inform you this way so we don't forget about it
This adds a OptionalSettings class, along with plugin unload handling. This allows it so that when a plugin unloads, the discord bot will discord as well. Unless there is more than one plugin supporting the bot. This can probably be cleaned up and put into the DiscordSettings class, but this is for an example of what is possible.