Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/89.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
我在使用Javascript的Twitch聊天机器人中遇到输入错误_Javascript_Html_Chatbot_Twitch - Fatal编程技术网

我在使用Javascript的Twitch聊天机器人中遇到输入错误

我在使用Javascript的Twitch聊天机器人中遇到输入错误,javascript,html,chatbot,twitch,Javascript,Html,Chatbot,Twitch,我想通过增加我在这些游戏中的胜利和杀戮来扩展我的Twitch聊天 我使用此命令和聊天命令添加新命令 我写了这4行来添加功能 !addcom -ul=mod !addwin -a=_!addwin $(eval a=parseInt(decodeURIComponent(`$(querystring)`),10);`PRIVATE_TOKEN`+(a>=0?`&data=~${a}K~`:``)) !addcom -ul=mod _!addwin $(eval a=`$(urlfe

我想通过增加我在这些游戏中的胜利和杀戮来扩展我的Twitch聊天

我使用此命令和聊天命令添加新命令

我写了这4行来添加功能

!addcom -ul=mod !addwin -a=_!addwin $(eval a=parseInt(decodeURIComponent(`$(querystring)`),10);`PRIVATE_TOKEN`+(a>=0?`&data=~${a}K~`:``))

!addcom -ul=mod _!addwin $(eval a=`$(urlfetch https://twitch.center/customapi/addquote?token=$(query))`;b=decodeURIComponent(`$(querystring)`);b.includes(`PRIVATE_TOKEN`)?(a.includes(`Successfully added entry`)?`$(channel) won another game with ${b.split(`~`)[1].split(`K`)[0]} kills!`:`Invalid input!`):`Use !addwin`)

!addcom -cd=5 !wins $(eval a=`$(urlfetch json https://twitch.center/customapi/quote/list?token=PUBLIC_TOKEN)`.match(/~\d+K~/g);a?(b=a.length,c=`(`+a.map(x=>x.slice(1,x.length-1)).join(`, `)+`)`):(b=0,c=``);`$(channel) has ${b} wins ${c})

!addcom -ul=mod !resetwins $(eval `$(urlfetch https://twitch.center/customapi/delquote?token=PRIVATE_TOKEN&clear=1)`.includes(`All entries have been deleted`)?`Wins have been reset.`:`Try again later...`)
我可以添加新的胜利!addwin和我可以看到它与我的公钥插入URL的URL,但当我键入!赢了,我得到了错误“输入意外结束”虽然!wins书写正确