Discuss Scratch

god286
Scratcher
1000+ posts

Meowclient - connect to Scratch with NodeJS

scratchusername40 wrote:

god286 wrote:

(#78)

NFlex23 wrote:

You should add setting profile pictures.
Yes I saw that post. And thank you @SansStudios for making that post.
I was originally going to put it in V2.3.0 but FormData isn’t supported in Node. I have looked on SO, there are 2 options
The first option is to use a library. But this many dependencies for a scratch library? A bit.. concerning.. if one dependency gone bye bye meowclient
The second option is that someone said URLSearchParams does the exact same thing. I haven’t fact checked it yet though
use axios, it's my go to solution for requests in node and i built my library with it. I'm pretty sure it supports formdata
Axios is a library and my codebase is already Fetch standard

Here are some of my followers!

I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
SansStudios
Scratcher
1000+ posts

Meowclient - connect to Scratch with NodeJS

god286 wrote:

NFlex23 wrote:

You should add setting profile pictures.
Yes I saw that post. And thank you @SansStudios for making that post.
I was originally going to put it in V2.3.0 but FormData isn’t supported in Node. I have looked on SO, there are 2 options
The first option is to use a library. But this many dependencies for a scratch library? A bit.. concerning.. if one dependency gone bye bye meowclient
The second option is that someone said URLSearchParams does the exact same thing. I haven’t fact checked it yet though

np

You could always do the third option, which is just simply write a complete full-fledged parser for formdata
[this is sarcasm]

Last edited by SansStudios (May 17, 2022 02:59:13)


scratchcloud
Click above to check it out! I've worked on it for over a year!























Just like sudden sadness comes hangin' on the breeze
god286
Scratcher
1000+ posts

Meowclient - connect to Scratch with NodeJS

@SansStudios OBVIOUSLY best option is to beg the Node people to add FormData

Will try to use URLSearchParams later and see if it does anything. I don't think it will work.

Last edited by god286 (May 17, 2022 03:08:45)


Here are some of my followers!

I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
scratchusername40
Scratcher
1000+ posts

Meowclient - connect to Scratch with NodeJS

god286 wrote:

(#81)

scratchusername40 wrote:

god286 wrote:

(#78)

NFlex23 wrote:

You should add setting profile pictures.
Yes I saw that post. And thank you @SansStudios for making that post.
I was originally going to put it in V2.3.0 but FormData isn’t supported in Node. I have looked on SO, there are 2 options
The first option is to use a library. But this many dependencies for a scratch library? A bit.. concerning.. if one dependency gone bye bye meowclient
The second option is that someone said URLSearchParams does the exact same thing. I haven’t fact checked it yet though
use axios, it's my go to solution for requests in node and i built my library with it. I'm pretty sure it supports formdata
Axios is a library and my codebase is already Fetch standard
whats wrong with using librarys


















lolecksdeehaha
Scratcher
1000+ posts

Meowclient - connect to Scratch with NodeJS

scratchusername40 wrote:

god286 wrote:

(#81)

scratchusername40 wrote:

~snip~
Axios is a library and my codebase is already Fetch standard
whats wrong with using librarys
The thing is when you're making a library you want to use as few libraries as possible when making it. So, you make your own tools for that library, so it doesn't take long to install and it isn't some huge tree of dependencies.

Beep boop. I am a robot, and this action was performed automatically. If you have any concerns, please contact the owner of this robot.

ing season coming “soon”

I'm the founder of Forumoji, the source of all those neat forum emojis you occasionally see (the ones not in the default menu).

uwv
Scratcher
1000+ posts

Meowclient - connect to Scratch with NodeJS

god286 wrote:

(#83)
@SansStudios OBVIOUSLY best option is to beg the Node people to add FormData

Will try to use URLSearchParams later and see if it does anything. I don't think it will work.
why not just use a library? form-data isn't going anywhere anytime soon plus you only need 2 libraries in total

i use arch linux (btw) with the linux zen kernel and enjoy writing silly things in silly languages using silly frameworks
god286
Scratcher
1000+ posts

Meowclient - connect to Scratch with NodeJS

uwv wrote:

god286 wrote:

(#83)
@SansStudios OBVIOUSLY best option is to beg the Node people to add FormData

Will try to use URLSearchParams later and see if it does anything. I don't think it will work.
why not just use a library? form-data isn't going anywhere anytime soon plus you only need 2 libraries in total
OK. But so many dependencies scary

Here are some of my followers!

I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
god286
Scratcher
1000+ posts

Meowclient - connect to Scratch with NodeJS

lolecksdeehaha wrote:

god286 wrote:

lolecksdeehaha wrote:

~snip~
Even better hourly
Nah, decided to switch ideas. I'm making a Scratch CLI now.
Yes, and another thing I am going to go to now:

For this Scratch CLI you might need/want features such as love, favourite, follow and post comment. Should I add in these social actions to meowclient? It could be used by the trolling people and it is against the ToS, but it can have legitimate uses.

Ocular to vote, Thumbs Up if yes, Thumbs Down if no

Last edited by god286 (May 18, 2022 06:35:24)


Here are some of my followers!

I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
scratchusername40
Scratcher
1000+ posts

Meowclient - connect to Scratch with NodeJS

god286 wrote:

(#88)

lolecksdeehaha wrote:

god286 wrote:

lolecksdeehaha wrote:

~snip~
Even better hourly
Nah, decided to switch ideas. I'm making a Scratch CLI now.
Yes, and another thing I am going to go to now:

For this Scratch CLI you might need/want features such as love, favourite, follow and post comment. Should I add in these social actions to meowclient? It could be used by the trolling people and it is against the ToS, but it can have legitimate uses.

Ocular to vote, Thumbs Up if yes, Thumbs Down if no
it doesn't really matter because someone could just use another library like meow.js or a python library if they wanted. so you might as well add them in


















lolecksdeehaha
Scratcher
1000+ posts

Meowclient - connect to Scratch with NodeJS

I don't need the social actions, as I can implement them myself, but if it's possible can you implement getting the current auth token? I need it to fetch messages and other actions.

edit: nvm it's already implemented (session.crsfToken)

Last edited by lolecksdeehaha (May 18, 2022 16:26:02)


Beep boop. I am a robot, and this action was performed automatically. If you have any concerns, please contact the owner of this robot.

ing season coming “soon”

I'm the founder of Forumoji, the source of all those neat forum emojis you occasionally see (the ones not in the default menu).

lolecksdeehaha
Scratcher
1000+ posts

Meowclient - connect to Scratch with NodeJS

Actually, is it fine if we can collab on Scratch-CLI? I can't figure out how to fetch messages, even with a token.

Beep boop. I am a robot, and this action was performed automatically. If you have any concerns, please contact the owner of this robot.

ing season coming “soon”

I'm the founder of Forumoji, the source of all those neat forum emojis you occasionally see (the ones not in the default menu).

god286
Scratcher
1000+ posts

Meowclient - connect to Scratch with NodeJS

lolecksdeehaha wrote:

Actually, is it fine if we can collab on Scratch-CLI? I can't figure out how to fetch messages, even with a token.
Sure! Although I may not be the most active. We can discuss that on my profile

Here are some of my followers!

I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
god286
Scratcher
1000+ posts

Meowclient - connect to Scratch with NodeJS

IF YOU HAVE ANY BUGS
I would be grateful if you can please tell them here, I will do my best to fix them!!!!!!!!!!!!!!

Here are some of my followers!

I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
PoIygon
Scratcher
1000+ posts

Meowclient - connect to Scratch with NodeJS

god286 wrote:

IF YOU HAVE ANY BUGS
I would be grateful if you can please tell them here, I will do my best to fix them!!!!!!!!!!!!!!
I found a bug where I cannot do any social actions










god286
Scratcher
1000+ posts

Meowclient - connect to Scratch with NodeJS

PoIygon wrote:

god286 wrote:

IF YOU HAVE ANY BUGS
I would be grateful if you can please tell them here, I will do my best to fix them!!!!!!!!!!!!!!
I found a bug where I cannot do any social actions
It's not a bug it's a feature

Here are some of my followers!

I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
PoIygon
Scratcher
1000+ posts

Meowclient - connect to Scratch with NodeJS

god286 wrote:

PoIygon wrote:

god286 wrote:

IF YOU HAVE ANY BUGS
I would be grateful if you can please tell them here, I will do my best to fix them!!!!!!!!!!!!!!
I found a bug where I cannot do any social actions
It's not a bug it's a feature
Oh yeah I forgor programmers can do that










god286
Scratcher
1000+ posts

Meowclient - connect to Scratch with NodeJS

bump

Here are some of my followers!

I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
god286
Scratcher
1000+ posts

Meowclient - connect to Scratch with NodeJS

Automatic Scratch Auth code generator anyone??
Looks like the only way for this to be active is if I start adding in the social actions…

Here are some of my followers!

I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
lolecksdeehaha
Scratcher
1000+ posts

Meowclient - connect to Scratch with NodeJS

god286 wrote:

Automatic Scratch Auth code generator anyone??
Looks like the only way for this to be active is if I start adding in the social actions…
tbh yeah

bump

Beep boop. I am a robot, and this action was performed automatically. If you have any concerns, please contact the owner of this robot.

ing season coming “soon”

I'm the founder of Forumoji, the source of all those neat forum emojis you occasionally see (the ones not in the default menu).

god286
Scratcher
1000+ posts

Meowclient - connect to Scratch with NodeJS

What do you think about the code being like this?
import { Session, Studio } from "meowclient";
const session = new Session();
await session.init("user", "pass");
const studio = new Studio(31590751, session);
console.log(await studio.getCurators());
await studio.inviteCurator("god286");
Or the normal way?

Last edited by god286 (July 20, 2022 05:16:20)


Here are some of my followers!

I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.

Powered by DjangoBB