Sorry if that sounds confusing, I’m a complete noob to this and just trying to figure out a way around the character limit when it comes to the 8-ball type response commands. I already figured out how to use pastebin for returning a longer list of different responses, but the problem with that is in some of those responses I want to put like $(user) or $(touser), but pastebin just copy and pastes the answers (go figure lol) and the will output exactly this “slapped $(touser) with a wet noodle”.
So then I thought, “well is it possible for a command to activate another command?” Something like this
and then !love and !hate would have different lists of answers but in the same form as above using $(user) and $(touser) in the responses. (and also I could just set !love !hate to be mod only commands so they couldn’t be used, but nightbot is a mod so it shouldn’t have a problem when it executes the main command !slap command maybe…?)
So is there some way to do this? or if you have a better suggestion, I’m all ears! Thank you! <3
You need to use quotes so it recognizes it as a string, so yes. Otherwise you will get an error. If your splitting the pastebin into an array in the eval you will have to change that to get this to execute properly. (By making it into and array from the start) Let me know if any issues arise.
Also,
pastebin: hugged “+touser+” because “+user+” is in love with them,
would be
pastebin: "hugged "+touser+" because "+user+" is in love with them"
Difference being the quotes at the start and end of each part of the array.
At the beginning and end of each line? Sorry I’m confused
So in the pastebin like this:
[ and ]“slapped “+touser+” with a restraining order”,[ and ]
[ and ]“hugged “+touser+” because “+user+” is in love with them”,[ and ]
Or like this:
[ and ]“slapped “+touser+” with a restraining order”,
“blew “+touser+” a kiss”,
“hugged “+touser+” because “+user+” is in love with them”,[ and ]