Firebot icon indicating copy to clipboard operation
Firebot copied to clipboard

[Feature Request] Nickname feature

Open Alastor-git opened this issue 3 years ago • 5 comments

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.

Alastor-git avatar Mar 30 '22 20:03 Alastor-git

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?

zunderscore avatar Mar 30 '22 21:03 zunderscore

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.

Alastor-git avatar Mar 30 '22 21:03 Alastor-git

So would a nickname replacement variable make more sense? What other use cases would there be other than that?

zunderscore avatar Mar 30 '22 21:03 zunderscore

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.

Alastor-git avatar Mar 30 '22 21:03 Alastor-git

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.

itsjesski avatar May 11 '22 01:05 itsjesski