bot icon indicating copy to clipboard operation
bot copied to clipboard

Dynamically add a channel to available pool when others are being typed in

Open jb3 opened this issue 4 years ago • 12 comments

Following on from python-discord/meta#92.

We want to provide a third help channel in the available category so that more people can type their question at once without the channel being claimed halfway through. Please see the original issue for the justification.

The help channels cog must be altered to provide for this and place 3 help channels into the available pool (as opposed to the current two).

jb3 avatar Feb 21 '21 22:02 jb3

It should be as simple as updating the config value. https://github.com/python-discord/bot/blob/27e60e94bd1fe6784c2b7674433bb175255fa217/config-default.yml#L473

Den4200 avatar Feb 21 '21 23:02 Den4200

Indeed! Alright, let's make that change.

We'll then need to update the documentation for the feature though, so we'll leave this open. I think @SebastiaanZ has previously done work on the how to get help channel.

jb3 avatar Feb 21 '21 23:02 jb3

Partially resolves!

jb3 avatar Feb 21 '21 23:02 jb3

I'm just curious as to why a static change (a simple bump to 3 channels) was chosen, as opposed to dynamic change, as described in the original issue:

the bot could detect typing in these channels and if both are being typed into at the same time, send a new channel in

Dynamic change like this could be quite beneficial and wouldn't require further issues with increasing the count, it would also mean that during the more active hours, there would perhaps be more help channels, to satisfy the need. But of course, there should be some minimum/maximum amount of channels, but it should be within discord.py capabilities to do something like this.

Is it because of the amount of API calls it would require or was there some other reason to go with a static bump like this?

OpenPiece avatar Feb 22 '21 11:02 OpenPiece

The static bump was only a temporary fix. There are certain problems with the typing solution due to the way discord handles typing events (more detail than is needed right now), so we decided to table that for now while we continue looking for better solutions.

HassanAbouelela avatar Feb 22 '21 11:02 HassanAbouelela

Yep, as Scale mentions this is a temporary solution.

We do have some internal issues that were opened after we merged this to talk about this including suggestions such as using reactions. We'll update onto this repo once we've held a discussion.

jb3 avatar Feb 22 '21 11:02 jb3

We should remove good first issue label from this issue (#1427) and add a status: deferred label since there are problems in on_typing event of discord.py.

Context: https://discord.com/channels/267624335836053506/635950537262759947/816596256163496036

Shivansh-007 avatar Mar 11 '21 07:03 Shivansh-007

Thanks, done.

HassanAbouelela avatar Mar 13 '21 17:03 HassanAbouelela

I believe the issues we had with the on_typing event have been resolved on Discord's end, thus this is no longer stalled if someone would like to look into it.

TizzySaurus avatar Aug 25 '21 16:08 TizzySaurus

Correct me if I am wrong! This can be achieved by defining an 'on_typing' event listener? And according to me there must be some upper limit to the channels that can occur in available help category even when added dynamically please do share your thoughts and relatable numbers about that.

Hashed0719 avatar Apr 25 '22 13:04 Hashed0719

I agree, there should be an upper limit. With that said, there are plans:tm: to migrate our help channel system to Discord forum channel. I'm afraid, in that case, work done on this issue will be a waste of effort.

vivekashok1221 avatar Apr 25 '22 15:04 vivekashok1221

Makes sense! then I think we should stall this issue.

Hashed0719 avatar Apr 26 '22 08:04 Hashed0719

Now we're using forum channels this doesn't seem relevant any more.

wookie184 avatar Dec 29 '22 14:12 wookie184