DerDomee / discordbot-alexxoffi

The main Discord bot for the communityserver of AlexxOffi
GNU General Public License v3.0
0 stars 0 forks source link

Automatic VoiceChannel handler for dynamic channels #1

Closed DerDomee closed 3 years ago

DerDomee commented 3 years ago

This feature branch adds a handler for automatic dynamic voice channels on the server. It is inspired by many other bots that already have this functionality. I add it in the most simple way without discord.ctx, but with my own semi-context system.

DerDomee commented 3 years ago

Missing Features to this point:

VoiceChat Commands, allowing the channel owner to

DerDomee commented 3 years ago

Newest commit 3a33cda7e21bb335c3ee11548c458dca9a5a2801 adds detailed comments containing the requirements for each function that is related to voice channels. Awaiting approval to implement everything like this.

DerDomee commented 3 years ago

I assume updating the voice-/text-channels more than 2 times lets me crash into the discord rate limit. Needs further testing about the timings. But maybe this whole rate-limit talking is just crap and instead I am boosted, not spotting an obvious error.

Problem occurs when toggling channel visibility (thats what im currently implementing): I can toggle the visibility two times. So in both directions the toggle works perfectly. But the third toggle doesnt succeed and the bot seems to be unable to see/edit/delete/do anything regarding the channels. Changing the role's name seems to work every time though.

DerDomee commented 3 years ago

I limited the usage of voice toggle and voice name to a total of 2 times per dynamic channel. This prevents the weird error that stops the bot from interacting with the dynamic channel after a third channel edit. This is only a hacky workaround that might be fixable. But I dont know how to fix it yet. Help needed.