Hey so I made a blackjack command with the use of ehsankia’s qoute API. Below are instructions of how to add it to your nightbot.
Getting tokens for commands
To get the tokens needed for this command please go here https://twitch.center/customapi/quote/generate and find the 8 and 16 digit tokens.
They are after “token=” and before “&data” the 8 digit one is your PUBLIC_TOKEN and is free to share, your 16 digit one is you PRIVATE_TOKEN and should not be shared.
Adding the commands
First command can be any name you like. If your audience isn’t immature I would suggest “!bj”:
$(eval Data=`$(urlfetch json https://twitch.center/customapi/quote/list?token=Public_Token&no_id=1)`.split(`,`);One=`$(1)`.toLowerCase();User=`$(user)`;Two=`$(2)`.toLowerCase().replace(`@`,``);Three=`$(3)`;Token=`Private_Token`;$(urlfetch json https://pastebin.com/raw/WLxuLSMp))
Add the command through your dashboard so no one gets your tokens
Alias the command to _bj
Add your tokens in the appropriate places
Second command _bj:
$(eval A=`$(urlfetch https://twitch.center/customapi/addquote?token=$(1))`;User=`$(user)`;Data=`$(urlfetch json https://twitch.center/customapi/quote/list?token=Public_Token&no_id=1)`.split(`,`);Info=`$(1)`.split(`%20`);$(urlfetch json https://pastebin.com/raw/M04fayF9))
Add your tokens in appropriate places
Questions?
If you have any questions feel free to ask them to me here or message me privately on my discord.
Testing command
If you are looking for a place to test out the command I have it set up on a discord server Here