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

[Bug] - Some servers don't receive new feed posts #6

Closed Andrew-J-Larson closed 3 years ago

Andrew-J-Larson commented 3 years ago

This may be attributed due to the fact that a for loop is used to post a msg to each server... which may be too fast for discord's bot limits. So, just need to pull up the Discord API information against how many times a bot can post per second/per minute.

I'll adjust the for loop just loop to create another temporary array of only the servers that have a feed channel, and then use an interval loop (with a set time) to go through each channel to post to each discord server.

Andrew-J-Larson commented 3 years ago

Should be resolved in https://github.com/TheAlienDrew/galnet-news-discord-bot/commit/1ab41b484fac490410e1413a5b0a69f18746bfc4