SwiftQS / SDG_Discord_Bot_Original

Multipurpose bot for a private Discord server.
3 stars 1 forks source link

Lost karma due to nickname #79

Open DaKing opened 6 years ago

DaKing commented 6 years ago

The script I have doesn’t crawl back far enough but before I finish it are we interested in going back and attributing all karma properly as if the issue in PR #78 never existed?

Short version we can request chunks of messages (ex 50 messages at a time) for a channel and then comb through them all channel by channel for karma ++--

This wouldn’t be a functionality of the bot it would be more like a one time “adjustment” of karma totals that we’d feed into the database.

Thoughts?

SwiftQS commented 6 years ago

I’m not sure how much coding you’ve already done for this. If it isn’t a lot of effort to finish it up and do it I think that would be cool.

SwiftQS commented 6 years ago

Also, if we were to do it I guess just make sure it stops whenever the nicknames became an issue so it’s not counting double karma. Or we erase all accumulated karma and re-tally ALL of it.

DaKing commented 6 years ago

That wouldn't be an issue as all historical data inherits the users current name/ID so we compare that to the current karma totals and then we have the difference. Make a one time adjustment and Bob's your uncle.

SwiftQS commented 6 years ago

As dumb as karma is I think everyone in the server would secretly be pretty happy about it.