aiko-chan-ai/DiscordBotClient

Sharding implementation

kimjunsung04 opened this issue · 15 comments

An error occurs for bots that require shading.
Like that video, you fell into an infinite loop after a warning message occurred.
Is it a problem that can be solved?

2023-07-20.02-59-27.mp4

It's good if it can be solved by personal wish :)

😭

How many guilds does your bot have?

How many guilds does your bot have?

About 30000 servers are participating

I'm thinking 2 implementations:

  • 1: each electron window is a shard, but there will be problems with RAM
  • 2: use only one shard, but must use command to switch

😭

Switching each shard also seems like a good idea!

Showing many servers in one window can obviously cause performance problems.

Showing many servers in one window can obviously cause performance problems.

In conclusion, is this problem correctable?

In conclusion, is this problem correctable?

maybe...

In conclusion, is this problem correctable?

maybe...

I will support you!!

it's done
I hope it works well

(200 guilds / 1 shard)

image
image
image

v2.4.1

It works fine!
It's very interesting Thank you!

totally not a privacy issue :clueless: