Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Add sharding support #276

Open
1 of 5 tasks
PrivateGER opened this issue May 22, 2020 · 4 comments
Open
1 of 5 tasks

Add sharding support #276

PrivateGER opened this issue May 22, 2020 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@PrivateGER
Copy link

How have you installed cordless

  • Arch User Repository
  • Snap
  • scoop
  • brew
  • go get

What happened

Attempting to log in as a bot with a bot that is part of more than 2000 servers doesn't work.
The websocket is closed with the "Sharding required" message.

How do you reproduce this bug

Log in as a bot that is part of 2k+ servers.

Error output

websocket: close 4011: Sharding required.

How to fix

The only way to solve this problem is to implement sharding.

@Bios-Marcel Bios-Marcel added the enhancement New feature or request label Jun 24, 2020
@Bios-Marcel
Copy link
Owner

I actually thought discordgo already supports sharding. Maybe this just needs to be toggled.

@Bios-Marcel
Copy link
Owner

Appears there's no documentation about how the sharding exactly works with discordgo. Either way I don't want to implement this myself, as I have no way of testing this. I do not own any bots.

@Bios-Marcel Bios-Marcel added the help wanted Extra attention is needed label Jun 27, 2020
@Starwort
Copy link

I found this, it might be a simple dependency
https://github.com/jonas747/dshardmanager

@Bios-Marcel
Copy link
Owner

We'd need integration into https://github.com/Bios-Marcel/discordgo

@Bios-Marcel Bios-Marcel changed the title Bot Login Add sharding support Jun 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants