Closed dbgrigsby closed 6 years ago
Yeah I realized this some time after I started on the dev branch and is fixed there, but I just pushed a new config option to the master branch that lets you persist a guild's profile after it sees a guild removal (config.botSettings.persistGuildProfile
). This should satisfy your needs, let me know if it doesn't.
Thanks! I pulled. I'll let you know if it ever fails!
I run this bot on a large server that for whatever reason, regularly disappears from the server sidebar on Discord. Some of the time when this happens, the guild and feed are deleted, and I need to readd them, even after the server reappears.
Logs of event:
I'm the only one with permissions on the bot, and no commands were issued during this range. This output is created in https://github.com/synzen/Discord.RSS/blob/master/events/guildDelete.js , and is being called from the listener file, at https://github.com/synzen/Discord.RSS/blob/master/util/listeners.js#L24
I've temporarily solved the problem by making the json config file for the server unremovable by the user account running the bot, but this probably should be fixed.
When running the bot on many servers, perhaps as a public bot, this behavior makes sense, when a server is deleted or the bot kicked, removing the RSS feed makes sense. However, Discord servers simply are unavailable for minutes at a time, even an hour in extreme cases. There should be some sort of delay on the bot side that prevents this, I'm not sure what though.