-
Notifications
You must be signed in to change notification settings - Fork 40
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
Optionally ping user within bot command's message #240
base: main
Are you sure you want to change the base?
Optionally ping user within bot command's message #240
Conversation
👇 Click on the image for a new way to code review
Legend |
… response's content and it's embed (#240)
This could also be a good use case for message commands (which we're already using for moderation) |
I'm not sure that there's much confusion over who the intended recipient is when these commands are invoked, is that something you've noticed much of? |
@nickmccurdy What application commands do you mean? |
My concern is that this change results in those members getting pinged twice, which I think is confusing in a different direction. It's not obviously a straight improvement to the experience in my eyes |
@ScriptyChris I meant to say message commands. They're a type of application command that shows up when you open the context menu for a message.
@vcarl That's a good point. Could we fix this by having the mention in a slash command? |
@nickmccurdy you mean this? What would be the difference between invoking a command (i.e. @vcarl you mean "pinged twice", because some might not notice that the bot already pinged a person? It's fair argument, although if somebody would ping a person while using the command, then i don't think they would do it again after bot posts a message. Also, this enhancement is opt-in, because if one doesn't suffix the command with ping, then bot won't use that ping, so it will work as it has been so far. Also, i don't see a much of an issue if somebody would be pinged in two messages in a row - like... it can already happen if two different people reply to a person using the ping. |
To me it looks more powerful than my enhancement proposal, because multiple commands can be used at once and there is command name auto-completion (as opposed to |
@vcarl Can you please open a PR so I can also push? I'd like to try to merge my WIP into this. That should help us support commands like MDN with more args and make it easier to refactor things. |
Hey, i noticed that it's a bit inconvenient that often people have to ping a folk, which they just notified about some hint (like how to properly attach a code or how to properly ask a question) via the bot - so first message is calling the bot with i.e.
!code
command and, after the bot replies, one has to add like "hey @ScriptyChris please take a look ☝️ " to actually notify other person about the given hint. So i prepared an enhancement that if a certain command is used with pings added and/or it's a reply, then bot will automatically forward these pings in a form of prefixed message to the response command.Currently (for starters) the feature is hooked up with commands:
!ask
,!code (!gist)
,!ping
.Looking forward for a feedback. 👍
I hope that below screens present the change more readably than my description. :)
Before:
After: