Discuss Scratch

Matjam02
Scratcher
1000+ posts

Random Comment Selecter Bot

Hey! I’m wondering how I can use a server (on scratch) to my advantage to use by making the server, (I would have manual control of this) but for it to pick five random comments from a certain project.

If ya know how and you can tell me…Thanks!
Venatus_123
Scratcher
1000+ posts

Random Comment Selecter Bot

idk if you can use the server
Matjam02
Scratcher
1000+ posts

Random Comment Selecter Bot

Venatus_123 wrote:

idk if you can use the server
No I mean a python server
han614698
Scratcher
1000+ posts

Random Comment Selecter Bot

Follow this link:

https://magnifier.potatophant.net/projects/PROJECT-ID-HERE

and then you can add then to a list in Scratch and use the code
(item (join [random] []) of [list v] :: list)
Venatus_123
Scratcher
1000+ posts

Random Comment Selecter Bot

han614698 wrote:

Follow this link:

https://magnifier.potatophant.net/projects/PROJECT-ID-HERE

and then you can add then to a list in Scratch and use the code
(item (join [random] []) of [list v] :: list)
okay
sausagescratch
Scratcher
78 posts

Random Comment Selecter Bot

Hey there! I suggest you talk to someone like @Jeffalo or @WorldLanguages for more detail on this but basically I've worked out what you need to do, you can use the API https://scratch-mit-edu.ezproxyberklee.flo.org/site-api/comments/project/142/ using node.js with a get request randomly select and then have it show on the Scratch project.
Matjam02
Scratcher
1000+ posts

Random Comment Selecter Bot

sausagescratch wrote:

Hey there! I suggest you talk to someone like @Jeffalo or @WorldLanguages for more detail on this but basically I've worked out what you need to do, you can use the API https://scratch-mit-edu.ezproxyberklee.flo.org/site-api/comments/project/142/ using node.js with a get request randomly select and then have it show on the Scratch project.
Thanks! I managed to get my friend to do it, thanks for the advice tho

Powered by DjangoBB