NightDev Community Forums

Help me create a custom command


#41

Try urself

!boy : addquote?token=1dcbcde5$(eval $(urlfetch https://twitch.center/customapi/quote?token=5a7883926a46ea31&data=-$(user)-).includes(-$(user)-)?&data=-$(querystring $(user))-|~B~ Y:N) boys

!girl :addquote?token=1dcbcde5$(eval $(urlfetch https://twitch.center/customapi/quote?token=5a7883926a46ea31&data=-$(user)-).includes(-$(user)-)?&data=-$(querystring $(user))-|~G~ Y:N) girls

!bg : $(eval a=$(urlfetch https://twitch.center/customapi/$(1))$(urlfetch json https://twitch.center/customapi/quote/list?token=5a7883926a46ea);z=$(3);$(urlfetch json https://pastebin.com/raw/NfuT0svq))

im using these commands with !boy and !girl have !bg alias

thanks


#42

and !bg have no alias


#43

I just tried them and there’s a couple errors that should be fixed now. Remember to set the aliases as explained previously. Replace the tokens.

!boy:

stomapi/addquote?token=PRIVATE_TOKEN$(eval !`$(urlfetch https://twitch.center/customapi/quote?token=PUBLIC_TOKEN&data=-$(user)-)`.includes(`-$(user)-`)?`&data=-$(querystring $(user))-|~B~ Y`:` N`) boys

!girl:

stomapi/addquote?token=PRIVATE_TOKEN$(eval !`$(urlfetch https://twitch.center/customapi/quote?token=PUBLIC_TOKEN&data=-$(user)-)`.includes(`-$(user)-`)?`&data=-$(querystring $(user))-|~G~ Y`:` N`) girls

!bg:

$(eval a=`$(urlfetch https://twitch.center/cu$(1))$(urlfetch json https://twitch.center/customapi/quote/list?token=PUBLIC_TOKEN)*$(3)*PRIVATE_TOKEN`;$(urlfetch json https://pastebin.com/raw/NfuT0svq))

#44

How about !Bgreset command ?


#45

Copy and paste this into chat to create !bgreset

!addcom -ul=mod !bgreset $(eval `$(urlfetch https://twitch.center/customapi/delquote?token=PRIVATE_TOKEN&clear=1)`==`All entries have been deleted`?`$(user) has cleared the viewer list!`:`Try again...`)

#46

Still it is not working !boy and !girl command


#47

!boy:
responce : Nightbot
​0 boys have joined this stream. Cheers boys squad!

!girl :
Responce : Nightbot
​0 boys and 0 girls are watching this stream. Use !boy or !girl to join your squad.


#48

Screenshot of testing the commands in my chat. The command names have β€œ2” in them because I already had another set of !boy/!girl commands from the previous posts in this thread.

Make sure you copied and pasted the commands exactly as they were written and have placed in the appropriate public and private tokens.


#49

https://www.youtube.com/watch?v=PKl1J9Nyv0U see here


#50

!Bg : $(eval a=$(urlfetch https://twitch.center/cu$(1))$(urlfetch json https://twitch.center/customapi/quote/list?token=8833d5b9e1a2d528)*$(3)*687e9469;$(urlfetch json https://pastebin.com/raw/NfuT0svq))

!boy : stomapi/addquote?token=687e9469$(eval !$(urlfetch https://twitch.center/customapi/quote?token=8833d5b9e1a2d528&data=-$(user)-).includes(-$(user)-)?&data=-$(querystring $(user))-|~B~ Y:N) boys

!girl : stomapi/addquote?token=687e9469$(eval !$(urlfetch https://twitch.center/customapi/quote?token=8833d5b9e1a2d528&data=-$(user)-).includes(-$(user)-)?&data=-$(querystring $(user))-|~G~ Y:N)girls


#51

!boy:
responce :
​0 boys have joined this stream. Cheers boys squad!

!girl :
Responce :
​0 boys and 0 girls are watching this stream. Use !boy or !girl to join your squad.

As i can seee, you are testing on twitch, can you check on Youtube ?


#52

@xloss

I’ll private message you how the commands need to be set up.


#53

what do you replace tokens with?