i’m trying to get random copypasta command for my chat working and i’m probably missing something so i figured i’d ask.
i’d like to be able to type !copypasta, and have a random copypasta from a list of a handful pasted into chat. obviously your commands are limited in character number, so i tried having nightbot just type another command at rando in chat, which works, but doesn’t activate/trigger that command.
i added one to it’s alias but as far as i know a command can only have a single alias, so it just spits out the same copypasta every time now.
is there a way to do what i’m trying? or am i just being obnoxious lol
thanks in advanced!
[here’s the base of the random code i’m using currently, just tweaked a bit] !addcom nightbot $(eval a=[RESPONSE_1,RESPONSE_2,RESPONSE_3];a[Math.floor(Math.random()*a.length)])
If you use something like pastebin you can have lots and lots of responses that can randomly be selected using $(urlfetch json) As seen with commands such as “pokemon attack”, which has well over 1000 possible responses.
If you have a smaller amount of responses then this should work:
ohhhh ok so i’m copying the link from the bin and not the text? and when NB spits it out it reads as text. that makes sense now
thanks you for all the help so far! i’ll tinker some more and see what i can’t come up with lol
 i think i’ve got it! the “400” is a bit fiddly and not a true 400 i don’t believe as it could spit out the same text of a copypasta individually but not out of the randomizer which is odd. also, it has to be a public bin, which mine wasn’t as i had a “rage” copypasta that was sorta spicy and a Valorant one that mentioned guns a few times and pastebin isn’t a fan apparently lol
also i had some set to @ a random user in chat (i.e. "get ratio’d @‘random user here’ " and it doesn’t seem to want to do things like that. guess it makes sense as it’s a command within a command within a link lol