Tipbot creating extra accounts for users, which they cannot access. #5
Labels
No labels
area: devops
area: discovery
area: docs
area: livestream
area: proposal
consider soon
dependencies
Epic
good first issue
hacktoberfest
help wanted
icebox
level: 1
level: 2
level: 3
level: 4
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
on hold
priority: blocker
priority: high
priority: low
priority: medium
resilience
Tom's Wishlist
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbry-tipbot#5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The problem could be caused by this:
5c21d0fd22/bot/modules/tipbot.js (L106)
The issue is most likely that we're using
members
rather thanusers
https://discord.js.org/#/docs/main/stable/class/GuildMember
https://discord.js.org/#/docs/main/stable/class/User
also we should be using the property .id of said user, this way whatever username they use, it won't matter.
Can you confirm?
Right, that's my mistake for not understanding how GuildMembers and Users were different, as the documentation doesn't do the best job of clarifying, so sorry about that.
Also my bad using let, I'm just an idiot in this case, saw the code above where tipper was defined and so used that instead of var.
Have put up pull request on here that should fix it, though it'll still require manually refunding the money from the accidentally created accounts. Link: https://github.com/lbryio/lbry-tipbot/pull/9
Have updated PR to match the latest commit of my other PR.