Discuss Scratch

god286
Scratcher
1000+ posts

Meowclient - connect to Scratch with NodeJS

https://webdev03.github.io/meowclient/
Docs

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

I have removed documentation for now - I think writing it myself will be better.

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

I typed up a whole type definition for the API response. https://github.com/webdev03/meowclient/pull/2/commits/2eead0f21f70e6ad2f5b4cb32dad674b1bca3248

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

By the way I am discussing stopping the project and instead contributing to meow ts since meow already has most of the things necessary for a good library and there is not much of a point of making another

Last edited by god286 (Jan. 25, 2022 00:31:46)


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

In 24 hours I am publishing it to npm!
Please do NOT publish this package yourself - I am going to do it

Last edited by god286 (Jan. 25, 2022 01:01:01)


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

Now available on NPM! https://www.npmjs.com/package/meowclient
Shiny blue Typescript declaration badge

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

Profile comment replies are in the works. But now I really need help, when you reply to a comment you get @userYouAreReplying right? I figured if you use .textContent it would say @userYouAreReplying instead of the full A tag. But now there is something like
@iAmReallyCool \n    \n    \n    I am so cool
Can someone help??

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.
Maximouse
Scratcher
1000+ posts

Meowclient - connect to Scratch with NodeJS

god286 wrote:

Profile comment replies are in the works. But now I really need help, when you reply to a comment you get @userYouAreReplying right? I figured if you use .textContent it would say @userYouAreReplying instead of the full A tag. But now there is something like
@iAmReallyCool \n    \n    \n    I am so cool
Can someone help??
Would using a regular expression to replace any consecutive whitespace characters (\s+) with a single space work? That's what the browser does when displaying the comment.

Last edited by Maximouse (Jan. 26, 2022 19:04:34)



This is Maximouse's signature. Learn more about signatures.
god286
Scratcher
1000+ posts

Meowclient - connect to Scratch with NodeJS

Maximouse wrote:

god286 wrote:

Profile comment replies are in the works. But now I really need help, when you reply to a comment you get @userYouAreReplying right? I figured if you use .textContent it would say @userYouAreReplying instead of the full A tag. But now there is something like
@iAmReallyCool \n    \n    \n    I am so cool
Can someone help??
Would using a regular expression to replace any consecutive whitespace characters (\s+) with a single space work? That's what the browser does when displaying the comment.
Thanks I’ll try that!

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

I can't get it to work…
Edit: Nevermind it works!
"@iAmReallyCool \n    \n    \n    I am so cool".replace(/\n+/gm, "").replace(/\s+/gm, " ")

Last edited by god286 (Jan. 26, 2022 22:34:29)


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

0.3.0 has been released!

This adds type definitions for profile comments and also reply support.

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

Documentation is work in progress. https://webdev03.github.io/meowclient is now ready! Made with MkDocs it's really nice. If you want to use it in your own projects, then https://github.com/webdev03/meowclient/blob/main/.github/workflows/docs.yml is how I did the action.

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.
Chiroyce
Scratcher
1000+ posts

Meowclient - connect to Scratch with NodeJS

can you make a way to log out of the session? even scratchclient doesnt have it and raihan seems to be inactive, so if you know how it works, can you implement it so that i can copy it for my own use with credit?







April Fools' topics:
New Buildings in Scratch's headquarters
Give every Scratcher an M1 MacBook Air
Scratch should let users edit other Scratchers' projects
Make a statue for Jeffalo
Scratch Tech Tips™
Make a Chiroyce statue emoji


<img src=“x” onerror=“alert('XSS vulnerability discovered')”>

this is a test sentence
god286
Scratcher
1000+ posts

Meowclient - connect to Scratch with NodeJS

Chiroyce wrote:

can you make a way to log out of the session? even scratchclient doesnt have it and raihan seems to be inactive, so if you know how it works, can you implement it so that i can copy it for my own use with credit?
I'll try.

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.
Maximouse
Scratcher
1000+ posts

Meowclient - connect to Scratch with NodeJS

god286 wrote:

I can't get it to work…
Edit: Nevermind it works!
"@iAmReallyCool \n    \n    \n    I am so cool".replace(/\n+/gm, "").replace(/\s+/gm, " ")
\s matches newlines, so you only need the second replace.


This is Maximouse's signature. Learn more about signatures.
god286
Scratcher
1000+ posts

Meowclient - connect to Scratch with NodeJS

Maximouse wrote:

\s matches newlines, so you only need the second replace.
Oh ok. I am not very good with regexes.

Chiroyce wrote:

can you make a way to log out of the session? even scratchclient doesnt have it and raihan seems to be inactive, so if you know how it works, can you implement it so that i can copy it for my own use with credit?
I've added it to the repository, I'll publish to registry in a few minutes.

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

I'll get started on cloud connection now. It's the main reason why people use these libraries. I'll try to make a system for “on receive” if I can.

By the way, I think there's really good autocomplete and JSDOC comments. But if you have any suggestions I'd love to hear 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.
god286
Scratcher
1000+ posts

Meowclient - connect to Scratch with NodeJS

Wow, I forgot to write here!

0.5.0 has way better documentation and cloud connection support!!

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

0.5.1 is available with a new patch!

Last edited by god286 (Jan. 29, 2022 04:15:13)


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

bumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbumpbump

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