Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Error in the numbering. #171

Closed
1 of 4 tasks
ShowMeYourSkil opened this issue Oct 19, 2020 · 1 comment
Closed
1 of 4 tasks

[BUG] Error in the numbering. #171

ShowMeYourSkil opened this issue Oct 19, 2020 · 1 comment
Assignees
Labels
bug Something isn't working command

Comments

@ShowMeYourSkil
Copy link

Type of Bug

  • Typo
  • Minor
  • Major
  • Crash

Description

Describe the bug as clear and concise as possible.

The table of sp!karma is wrong.

  • It is difficult to explain. Have a look at the screenshots below and you will understand what I mean

Steps to Reproduce

Enter stepwise how to reproduce the bug.

  1. sp!karma
  2. See table of Shinpuru and Shinpuru Canary

Images and Logs

Here you can embed images or crash logs or command lines.
Please use embeded markdown images and code blocks for that.

Shinpuru Canary

image

Shinpuru

image

@ShowMeYourSkil ShowMeYourSkil added the bug Something isn't working label Oct 19, 2020
@zekroTJA
Copy link
Owner

Well, found the problem:

for i, v := range karmaList {
m, err := discordutil.GetMember(ctx.GetSession(), v.GuildID, v.UserID)
if err != nil {
continue
}

When a karma record in the database is linked to a user which is not a member of the guild anymore, the loop will continue and the position counter increases even if no new output entry was added eventually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working command
Projects
None yet
Development

No branches or pull requests

2 participants