Go to https://twitch.center/customapi/quote/generate. You will see three lines. Your first token is after token= and before &data= on the first line. Your second token is after token= and before &data= on the second and third lines. Replace FIRSTTOKEN and SECONDTOKEN with these before you add the following commands.
!join
$(eval q=`$(urlfetch json http://twitch.center/customapi/quote/list?token=FIRSTTOKEN&no_id=1)`;u=`$(user)`.split(" ")[0];c=`$(query)`.split(" ")[0];e=false;r=/([^ ]*): [^ ]* /g;while((m=r.exec(q))!==null){if(u.toLowerCase()==m[1].toLowerCase()){e=true}}if(e){"$EXISTS$"}else if(!c){"$NONAME$"}else{"addquote?token=SECONDTOKEN&data="+encodeURIComponent(`${u}: ${c} `)})
!joinadder
$(eval if(`$(urlfetch json http://twitch.center/customapi/$(query))`.startsWith("Successfully added entry ")){`$(user) joined the queue!`}else if(`$(query)`=="$EXISTS$"){`$(user) -> You are already in the queue`}else if(`$(query)`=="$NONAME$"){`$(user) -> Enter your name after !join`}else{`$(user) -> Use !join`})
!next3
$(eval q=`$(urlfetch json http://twitch.center/customapi/quote/list?token=FIRSTTOKEN&no_id=1)`;n3="";i=0;r=/([^ ]*): ([^ ]*) /g;while((m=r.exec(q))!==null&&i<3){n3+=`${m[1]}: ${m[2]} `;i++}i==0?`$(user) -> There are no names in the queue`:`Next ${i==1?"name":i+" names"}: ${n3}`)
!fullqueue
Full queue: http://twitch.center/customapi/quote/list?token=FIRSTTOKEN
!popqueue (userlevel moderator)
$(eval r=`$(urlfetch json http://twitch.center/customapi/delquote?token=SECONDTOKEN&data=1)`;m=r.match(/^Successfully deleted entry #1: (.*)$/);if(m){m[1]}else if(r=="Invalid entry index"){`$(user) -> The queue is empty`}else{`$(user) -> Unknown error (${r})`})
!clearqueue (userlevel moderator)
$(eval q=`$(urlfetch json http://twitch.center/customapi/quote/list?token=FIRSTTOKEN)`;r=`$(urlfetch json http://twitch.center/customapi/delquote?token=SECONDTOKEN&clear=1)`;if(q=="There are no quotes added"){`$(user) -> The queue is already empty`}else if(r=="All entries have been deleted"){"The queue has been cleared"}else{`$(user) -> Unknown error (${r})`})
These commands don’t let people use spaces in the names they type after !join, because it makes the page that !fullqueue links prettier. If you need people to be able to join the queue with names that contains spaces, let me know and I can change the commands.
I just tested all the commands and verified that they work. You must not be properly inserting your tokens. Please reread the instructions in the post for inserting the tokens.
You need to use !commands add or !addcom, or preferably https://beta.nightbot.tv/commands/custom. And you aren’t replacing FIRSTTOKEN and SECONDTOKEN with your tokens.
!commands add !join -a=!joinadder $(eval q=`$(urlfetch json http://twitch.center/customapi/quote/list?token=FIRSTTOKEN&no_id=1)`;u=`$(user)`.split(" ")[0];c=`$(query)`.split(" ")[0];e=false;r=/([^ ]*): [^ ]* /g;while((m=r.exec(q))!==null){if(u.toLowerCase()==m[1].toLowerCase()){e=true}}if(e){"$EXISTS$"}else if(!c){"$NONAME$"}else{"addquote?token=SECONDTOKEN&data="+encodeURIComponent(`${u}: ${c} `)})
!commands add !joinadder $(eval if(`$(urlfetch json http://twitch.center/customapi/$(query))`.startsWith("Successfully added entry ")){`$(user) joined the queue!`}else if(`$(query)`=="$EXISTS$"){`$(user) -> You are already in the queue`}else if(`$(query)`=="$NONAME$"){`$(user) -> Enter your name after !join`}else{`$(user) -> Use !join`})
!commands add !next3 $(eval q=`$(urlfetch json http://twitch.center/customapi/quote/list?token=FIRSTTOKEN&no_id=1)`;n3="";i=0;r=/([^ ]*): ([^ ]*) /g;while((m=r.exec(q))!==null&&i<3){n3+=`${m[1]}: ${m[2]} `;i++}i==0?`$(user) -> There are no names in the queue`:`Next ${i==1?"name":i+" names"}: ${n3}`)
!commands add !fullqueue Full queue: http://twitch.center/customapi/quote/list?token=FIRSTTOKEN
!commands add !popqueue -ul=moderator $(eval r=`$(urlfetch json http://twitch.center/customapi/delquote?token=SECONDTOKEN&data=1)`;m=r.match(/^Successfully deleted entry #1: (.*)$/);if(m){m[1]}else if(r=="Invalid entry index"){`$(user) -> The queue is empty`}else{`$(user) -> Unknown error (${r})`})
!commands add !clearqueue -ul=moderator $(eval q=`$(urlfetch json http://twitch.center/customapi/quote/list?token=FIRSTTOKEN)`;r=`$(urlfetch json http://twitch.center/customapi/delquote?token=SECONDTOKEN&clear=1)`;if(q=="There are no quotes added"){`$(user) -> The queue is already empty`}else if(r=="All entries have been deleted"){"The queue has been cleared"}else{`$(user) -> Unknown error (${r})`})
You still need to replace FIRSTTOKEN and SECONDTOKEN with your tokens.