Nightbot modifying URL string

Hi guys,

I am racking my brains over trying to figure this out.
Basically long story short, I want Nightbot to react to a command and modify a string stored somewhere that I can reference it via a web browser input via OBS Studios.

So as an example, I want to have Nightbot react to a command like !url “name here” and I want it to modify a string (thats a URL). So lets say the current string is https://thislinkhere.com/here and someone calls a command by Nightbot using !url name. I want the URL to change to https://thislinkhere.com/name

Any ideas?

@luftfolie It’s bit confusing, what you actually want. Anyways, try this,

!addcom -cd=5 !url $(eval x=`$(querystring)`; `https://this_link_here.com/` + x)

Example usage:

Ritik: !url
Nightbot: https://this_link_here.com/Ritik

Ritik: !url nightbot
Nightbot: https://this_link_here.com/nightbot

Ritik: !url ritik ranjan
Nightbot: https://this_link_here.com/ritik%20ranjan

Regards

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.