[Feature Request] Nickname feature
Describe the solution you'd like Add a "command received" event that allows to intercept a command before it's executed and modify its parameters.
Additional context My basic idea here is to allow stuff like the streamer maintaining a list of aliases for some prominent community members, that can be sent to commands interchangeably. Example : User named JustSomeOldGuy gets called by everyone JSOG, but the bot doesn't recognize that as him. That feature would allow to fix it.
I don't understand why you would need an event for this. This isn't really the use case for an event. Why couldn't you analyze the parameters as part of the command execution?
If you analyze it as part of the command, you have to implement that for every command. If you analyze it through an event, you can have a single one for all of them. I think for such a thing, you need something global.
So would a nickname replacement variable make more sense? What other use cases would there be other than that?
I'm not sure what you mean by a nickname replacement variable. You mean integrating alts into the bots ? Yeah, I guess that could work too for my use case. That would actually be even more practical. I'm not sure what other use cases there would be for that event. I think generally any pre-treatment you want to do on arguments. Possibly also intercepting core commands, like changing the syntax of !quote add for example.
Maybe a nickname field could be added to the viewer modal? Then we could add a nickname variable that you pass the twitch name to in order to get the users nickname.
- Add nickname field to viewer modal.
- Add $nickname[twitchName] variable to pull nickname data.
- Add effect to set a users nickname.