Skip to content
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

Add Command feature: Act as typing until response is sent #26

Open
weeco opened this issue Aug 12, 2018 · 1 comment
Open

Add Command feature: Act as typing until response is sent #26

weeco opened this issue Aug 12, 2018 · 1 comment

Comments

@weeco
Copy link
Contributor

weeco commented Aug 12, 2018

It would be nice to have a feature for Command which allows you to set actAsTypingUntilResponseIsSent to true. If you have asynchronous responses to commands, it is handy to inform the user that the bot is processing the request by using message.channel.startTyping(). Once the response has been sent message.channel.stopTyping() has to be executed again.

Implementing that for all commands is a repetitive task and I think this could be a nice feature for this framework.

@zajrik
Copy link
Member

zajrik commented Aug 13, 2018

The best I could really do on the framework end is start the typing process before the command action is executed and stop it after. Maybe also have command.respond() stop it if it's used. Other than that it'd be clunky and not really fit with a lot of potential command designs, which is why it's never been something I've wanted as a part of the framework.

I'll consider it, and I'll leave this open as a reminder. If I make a decision either way I'll close this. I also definitely won't go for such a verbose option name if I do lol.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants