jkomoros / flux-bot

Discord bot for GALE-x
3 stars 1 forks source link

Make sure the bot works OK when we hit the max number of channels #40

Open jkomoros opened 3 years ago

jkomoros commented 3 years ago

Discord only allows 500 (I think) channels. At some point we'll hit that limit. (Remember that categories also count as channels).

Ideally well in advance of hitting the limit (maybe 10?) we'd do some garbage collection and compaction.

One option is to just download a JSON dump of the old thread (we could just use discordgo's structs) and keep that around in some backup. That should work but it's offline backup--it wouldn't be possible to search the threads for example.

Another option would be to create an archive thread and then reply the conversations to them in some format. You'd ideally want to have similar numbers of emoji reactions to them, maintain reply-style structure, etc. It would be kind of hard to do presumably.