-
Notifications
You must be signed in to change notification settings - Fork 2
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
Example Request: Sharding #70
Comments
unfortunately, i dont think this project is being maintained anymore... this looks really nice to use (and i find dgo really annoying to use so) |
We switched to use https://github.com/bwmarrin/discordgo and github.com/servusdei2018/shards for sharding and it's working great. |
I was homeless.
The short term fix is to use `bot.Config.Gateway.ShardManager.SetNumShards(2)'. The long term fix is that the Limit struct should not be nil. I can implement this fix when I want or when I am paid to do so. However, you are using discordgo, so no payment is expected. Here is what caused the issue. Line 86 is a reference to totalShards = sm.Limit.RecommendedShards The instantiated shard manager has a nil Limit struct. When you call Connect, totalShards is not set, so it attempts to read from a nil pointer. The shard test doesn't catch this issue because it calls The short term fix is to use that line of code and set the shards to a given number. The long term fix is to make sure there is a limit set and consider whatever reason I had for not doing so. Does this package make you use a lot of |
oh no! i hope you're back on your feet 👍🏼 |
I'm on an ARM OSx device.
I'm not very familiar with golang and am trying to migrate my Discord bot to use your library. It's a sharded bot. I'm following the docs here and am encountering an error I don't understand. I was wondering if you'd be able to add a full example of how to run a sharded bot as I seem to be doing something wrong.
I keep getting
The text was updated successfully, but these errors were encountered: