Closed entres999 closed 4 years ago
My code works perfectly in jsfiddle when I try it on twitch chat it doesnt work (im making a command for a twitch bot)
Hey, can you provide more context for this issue?
Desirable:
Please make sure not to post any credentials here
I hope I provided all the info needed
I believe this is because you pass z
, a number
into client.say()
. This function requires you to pass a string
as an argument though.
Fix:
setTimeout(function () {
client.say("channelname", "" + z) // here z ist casted into a string first
}, delayInMilliseconds)
it worked. I will keep this in mind, that client.say requires two strings as arguments. Thank you so much for the help
"TypeError: message.startsWith is not a function" ... I get this message without even using the .startsWith