bitbot-irc / bitbot

https://bitbot.dev | Python3 event-driven modular IRCv3 bot 🤖
GNU General Public License v2.0
135 stars 50 forks source link

!sendcoins when users is offline causes those coins to vanish #244

Open zuzak opened 4 years ago

zuzak commented 4 years ago
13:34:33 -!- human [~human@earth/species/human] has quit [Remote host closed the connection]
13:34:53 <@person> BitBot: sendcoins human 500
13:34:54 <+BitBot> [Coins] person sent 500.00 coins to human
13:35:16 -!- mode/#chanel [+v human] by ChanServ
13:35:16 -!- human [~human@earth/species/human] has joined #channel
13:35:19 <+human> BitBot: coins
13:35:19 <+BitBot> [Coins] human has 0.00 coins
jesopo commented 4 years ago

when online, the coins will go to the user's nickserv account name. when offline, it goes directly to the provided nickname.

not sure how i can fix this

MineRobber9000 commented 4 years ago

Maybe you could keep track of what account name a nick was last associated with? I do something like that in reverse for public badge lists with badger, where I associate NickServ accounts to the nick they last used.