sogebot / sogeBot

sogeBot - Free Twitch Bot built on Node.js
https://sogebot.xyz/
GNU General Public License v3.0
291 stars 65 forks source link

Donation/Tip amount is inconsistent in viewer list #3136

Closed MoonlightAshe closed 4 years ago

MoonlightAshe commented 4 years ago

Expected behavior

The tip amount in the viewer list matches the actual amount donated.

Actual behavior

The tip amount is off, usually by $.01 unless you edit the amount manually. But after a while, it will offset again.

Steps to reproduce

2019-12-31_00-30-55 It seems to happen over an extended period of time. No new donations were contributed either, so it shouldn't be changing at all.

Additional informations

2019-12-31T00:33:41.623 DEBUG: * GENERAL      | OS: npm/6.12.0 node/v12.9.1 linux x64
2019-12-31T00:33:41.664 DEBUG: *              | Bot version: 10.3.0
2019-12-31T00:33:41.665 DEBUG: *              | DB: sqlite
2019-12-31T00:33:41.667 DEBUG: *              | HEAP: 133.92 MB
2019-12-31T00:33:41.667 DEBUG: *              | Uptime: 47248 seconds
2019-12-31T00:33:41.667 DEBUG: *              | Language: en
2019-12-31T00:33:41.667 DEBUG: *              | Mute: false
2019-12-31T00:33:41.668 DEBUG: * SYSTEMS      | alias, bets, checklist, commercial, cooldown, customcommands, highlights, howlongtobeat, keywords, moderation, points, polls, price, queue, quotes, raffles, ranks, scrim, -songs, timers, top, userinfo
2019-12-31T00:33:41.668 DEBUG: * GAMES        | -duel, -fightme, -gamble, -heist, -roulette, -seppuku, -wheeloffortune
2019-12-31T00:33:41.668 DEBUG: * INTEGRATIONS | donationalerts, -phillipshue, -qiwi, -responsivevoice, -spotify, -streamelements, streamlabs, twitter
2019-12-31T00:33:41.669 DEBUG: * WIDGETS      | ytplayer, queue, bets, chat, chat, bets, ytplayer, queue, chat, bets, ytplayer, queue, raffles, raffles, chat, queue, ytplayer, bets, raffles, chat, queue, ytplayer, bets, eventlist, raffles, eventlist, chat, ytplayer, queue, bets, raffles, eventlist, chat, ytplayer, queue, bets, raffles, eventlist, chat, ytplayer, queue, bets, twitch, eventlist, raffles, twitch, chat, queue, bets, ytplayer, eventlist, raffles, twitch, chat, queue, bets, ytplayer, eventlist, raffles, twitch, chat, queue, bets, ytplayer, eventlist, raffles, twitch, chat, queue, bets, ytplayer, eventlist, raffles, twitch, chat, queue, bets, ytplayer, eventlist, raffles, twitch, chat, queue, bets, ytplayer, social, raffles, eventlist, social, chat, twitch, queue, bets, ytplayer, raffles, eventlist, social, chat, twitch, queue, bets, ytplayer, raffles, eventlist, social, chat, twitch, queue, bets, ytplayer, raffles, eventlist, social, chat, twitch, queue, bets, ytplayer, raffles, eventlist, social, chat, twitch, queue, bets, ytplayer, raffles, eventlist, social, chat, twitch, queue, bets, ytplayer, raffles, eventlist, chat, twitch, queue, bets, ytplayer, chat, eventlist, raffles, bets, queue, ytplayer, join, part, raffles, chat, eventlist, ytplayer, queue, bets, join, part, raffles, chat, eventlist, ytplayer, queue, bets, join, raffles, chat, eventlist, ytplayer, queue, bets, join, cmdboard, cmdboard, chat, eventlist, raffles, bets, ytplayer, queue, cmdboard, chat, eventlist, raffles, bets, ytplayer, queue, cmdboard, chat, eventlist, raffles, bets, ytplayer, queue, cmdboard, chat, eventlist, raffles, bets, ytplayer, queue, cmdboard, chat, eventlist, raffles, bets, ytplayer, queue, cmdboard, chat, eventlist, raffles, bets, ytplayer, queue, cmdboard, eventlist, chat, raffles, ytplayer, bets, queue, cmdboard, eventlist, chat, raffles, ytplayer, bets, queue, cmdboard, eventlist, chat, raffles, ytplayer, bets, queue, cmdboard, eventlist, chat, raffles, ytplayer, bets, queue, cmdboard, eventlist, chat, raffles, ytplayer, bets, queue, join, part, raffles, cmdboard, eventlist, chat, queue, bets, ytplayer, part, join, cmdboard, eventlist, chat, raffles, ytplayer, queue, bets, part, join, cmdboard, eventlist, chat, raffles, ytplayer, queue, bets, part, join
2019-12-31T00:33:41.680 DEBUG: * OAUTH        | BOT true | BROADCASTER true
sogehige commented 4 years ago

Main currency is set as USD I assume and user donation is manually added?

sogehige commented 4 years ago

Oh yes, I can see it as well

sogehige commented 4 years ago

This issue is little bit more complicated. Due to various performance reason everything is treated as EUR in viewers list which can cause this, because of different rates between days usd-oldrate->EUR-newrate->USD is making that change.

I will add recounting of this when new rate comes, so values would be (hopefully) more correct