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

--reply Commands targeting #1642

Open
gempir opened this issue Dec 16, 2021 · 3 comments
Open

--reply Commands targeting #1642

gempir opened this issue Dec 16, 2021 · 3 comments

Comments

@gempir
Copy link
Contributor

gempir commented Dec 16, 2021

Creating a command with --reply can't be "targeted".

Like when as a mod I want to point a user to a specific command like !playlist fawcan it will still reply to me.

Maybe there could be another option like --target or something similar that will overwrite the reply target if it gets a username as argument.

I understand that a reply is probably not possible then because you will likely not have the message id of the other user but either try to look that up in history or do a non reply.

@RAnders00
Copy link
Contributor

RAnders00 commented Dec 19, 2021

As far as I understand it, --reply is just an alternative to the strict say and whisper response modes, to make the bot whisper the command result if the command was executed via whisper, and to say the response in chat if the command was executed there.

The @user, <text> format always comes from the command definition. If the command was defined as @$(source:name), response, then „targeting“ wont work since source always refers to the command sender. However there is @$(usersource;1:name), response which I think should do what you want to accomplish. Unfortunately it means the name mentioning prefix is included in whisper responses too, but that‘s a separate issue.

documentation: https://github.com/pajbot/pajbot/blob/master/docs/variables.md#usersource

@gempir
Copy link
Contributor Author

gempir commented Dec 19, 2021

As it was explained to me. --reply uses Twitch' Reply feature. Has nothing to do with whispering.

I used to create commands with @$(usersource;1:username_raw) which did what I wanted except it doesn't use the new reply feature.

@RAnders00
Copy link
Contributor

Ah, I see, I missed that change it seems. Fair point then

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

No branches or pull requests

3 participants