tybug / snitchvisbot

A snitch visualization discord bot for civ-style minecraft servers
GNU Affero General Public License v3.0
7 stars 3 forks source link

notify user of bot's indexing progress #5

Closed Huskydog9988 closed 11 months ago

Huskydog9988 commented 11 months ago

This should work but I've yet to test it myself. Please do double check my work.

tybug commented 11 months ago

I was imaging this as continuously editing a single message for each channel, so the user doesn't get spammed.

The "update message id" wouldn't have to be persisted to the database. Indexing is ephemeral at the moment anyway (restarting the bot in the middle will mess things up).

Huskydog9988 commented 11 months ago

Yea that sounds like a better idea, i was just slapping something together to keep it simple

tybug commented 11 months ago

Thanks. I've changed the update frequency to 1k messages, since I think it's important to give immediate feedback to users, and 2.5k was a bit slow.

An ideal response rate might be something like "at 100, 200, 300, 400, 500, 1000, 2500 messages, and every 2500 thereafter". But that's both annoying to code and potentially even more confusing to users, so a flat 1k seems okay for now.