Beginning to think Nightbot is a waste of time and effort.
Hey @John!
So you donât want help on your previous issue anymore?
Havenât had time to write you an answer yet, because what youâre looking for isnât simple and I have a life, but I believe itâs possible. I just wonât spend time writing code if you donât care about it anymore.
This forum is to help people set up the NightDev products/report issues, after that youâre supposed to be on your own, code is for advanced users. Weâre not supposed to write code for you, itâs a favor weâre doing to you and others, and weâre nice enough to do it for free, because we could definitely charge for it.
So the least you can do is be patient, we have 14 days before the topic automatically closes, Iâll even often bump a topic (if I find it interesting) when I didnât have time to reply to it and itâs about to close.
If youâre still looking for a solution, please answer with the following information:
⢠which platform are you on? Twitch, YouTube, Trovo?
⢠what should the output of the command âwith all the info at onceâ look like? give us an example.
Thanks but no thanks
Have a good day.
Iâve been googling everywhere for help on something similar and theres just nothing out there.
Im looking for help in how I can set up a !spot command on Youtube that takes the users name, their text after the spot command and the time of spot command and save it in a CSV file on my computer.
Its basically for wildlife streams so that a viewer can type â!spot Sparrowâ for example and the code would append Posters Name, sparrow, time of spot into a CSV file
Hey @Brett_Wolfe and @Urban_Wildlife-UK (similar post)!
One way you could do this is by using the quote system API. Youâll get your TOKENS
by clicking on the second link in the post, use these in the commands I wrote. To know where to look for your PUBLIC_TOKEN
and PRIVATE_TOKEN
, look at the field bellow:
$(urlfetch https://twitch.center/customapi/quote?token=PUBLIC_TOKEN&data=$(querystring))
$(urlfetch https://twitch.center/customapi/addquote?token=PRIVATE_TOKEN&data=$(querystring))
$(urlfetch https://twitch.center/customapi/delquote?token=PRIVATE_TOKEN&data=$(querystring))
Keep your PRIVATE_TOKEN
secret, donât share it anywhere. To add a command containing your PRIVATE_TOKEN
do it from the dashboard. Donât use the chat as anyone could monitor it and copy the token, they could then edit your data.
Then youâll need a set of commands:
-
!addspot
â to add a timestamp:$(urlfetch https://twitch.center/customapi/addquote?token=PRIVATE_TOKEN&data=$(user) $(querystring) $(twitch $(channel) "{{uptimeLength}}"))
The stored data will look as follow:
USERNAME SPOTTING TIMESTAMP
Feel free to personalize it. -
!spot
â to consult the timestamps list:https://twitch.center/customapi/quote/list?token=PUBLIC_TOKEN
or if you prefer having a random one, where you can also enter a query to search for a specific timestamp:
$(urlfetch https://twitch.center/customapi/quote?token=PUBLIC_TOKEN&data=$(querystring))
-
!clearspot
â to clear the entire timestamps list:
make sure to set the userlevel of this command to
Moderator
.$(urlfetch https://twitch.center/customapi/delquote?token=PRIVATE_TOKEN&clear=1)
-
!delspot
â to remove a specific timestamp, call the command with the ID of the timestamp:
make sure to set the userlevel of this command to
Moderator
.$(urlfetch https://twitch.center/customapi/delquote?token=PRIVATE_TOKEN&data=$(querystring))
Donât forget to replace
PUBLIC_TOKEN
and PRIVATE_TOKEN
in the commands I wrote above.
These are the only things you need to replace, for example many people replace $(channel)
with $(THEIR_CHANNEL_NAME)
and it causes issues: $(channel)
is its own variable that does the job for you, if you wanted to replace it, youâd need to use YOUR_CHANNEL_NAME
, not $(YOUR_CHANNEL_NAME)
.
Sure this doesnât create a CSV file, but you can make it so by personalizing !addspot
by replacing the spaces by commas, youâd then need to copy/paste the content on your computer and save the file.
To get the file without the quote ID, you can use the following link:
https://twitch.center/customapi/quote/list?token=PUBLIC_TOKEN&no_id=1
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.