Discuss Scratch

Chiroyce
Scratcher
1000+ posts

Meow-js: A new API module for communicating to the scratch website.

9gr wrote:

Vote: What should I add?
as kccuber said, play the meow sound effect for every line of code executed /j







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

Meow-js: A new API module for communicating to the scratch website.

Could you possibly add a way to convert strings into numbers? Unless this is already a feature.

Raihan142857
Scratcher
1000+ posts

Meow-js: A new API module for communicating to the scratch website.

ScolderCreations wrote:

Could you possibly add a way to convert strings into numbers? Unless this is already a feature.
parseInt(string, 10)

I use scratch.
GF: I'll dump you. BF: hex dump or binary dump?










gosoccerboy5
Scratcher
1000+ posts

Meow-js: A new API module for communicating to the scratch website.

Raihan142857 wrote:

ScolderCreations wrote:

Could you possibly add a way to convert strings into numbers? Unless this is already a feature.
parseInt(string, 10)
Number("3.141592653589793");
seems to work too but I'm willing to bet that's considered bad practice in some way..

ScolderCreations
Scratcher
1000+ posts

Meow-js: A new API module for communicating to the scratch website.

Sorry, I should've clarified. Can we have a feature that converts text and symbols into numbers?

gosoccerboy5
Scratcher
1000+ posts

Meow-js: A new API module for communicating to the scratch website.

ScolderCreations wrote:

Sorry, I should've clarified. Can we have a feature that converts text and symbols into numbers?
like this?

Chiroyce
Scratcher
1000+ posts

Meow-js: A new API module for communicating to the scratch website.

ScolderCreations wrote:

Sorry, I should've clarified. Can we have a feature that converts text and symbols into numbers?
Encoding and Decoding right?

gosoccerboy5 wrote:

like this?
basically yes.







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

Meow-js: A new API module for communicating to the scratch website.

gosoccerboy5 wrote:

ScolderCreations wrote:

Sorry, I should've clarified. Can we have a feature that converts text and symbols into numbers?
like this?
Video won't load.

ScolderCreations
Scratcher
1000+ posts

Meow-js: A new API module for communicating to the scratch website.

Chiroyce wrote:

ScolderCreations wrote:

Sorry, I should've clarified. Can we have a feature that converts text and symbols into numbers?
Encoding and Decoding right?
yup

wvj
Scratcher
1000+ posts

Meow-js: A new API module for communicating to the scratch website.

How do I set a signature with meow-js?

9gr
Scratcher
1000+ posts

Meow-js: A new API module for communicating to the scratch website.

wvj wrote:

How do I set a signature with meow-js?
Install meowing as an npm module, then use this code (obviously replacing myusername to your username and etc.)

const { ScratchSession }= require("meowing")
var session = new ScratchSession("myusername","mypassword")
session.login().then(async () => {
  var siggy = await session.getSignature()
  await siggy.update("hello world") // sets the signature bbcode to hello world
})
wvj
Scratcher
1000+ posts

Meow-js: A new API module for communicating to the scratch website.

9gr wrote:

wvj wrote:

How do I set a signature with meow-js?
Install meowing as an npm module, then use this code (obviously replacing myusername to your username and etc.)

const { ScratchSession }= require("meowing")
var session = new ScratchSession("myusername","mypassword")
session.login().then(async () => {
  var siggy = await session.getSignature()
  await siggy.update("hello world") // sets the signature bbcode to hello world
})
I get this error


Raihan142857
Scratcher
1000+ posts

Meow-js: A new API module for communicating to the scratch website.

wvj wrote:

9gr wrote:

wvj wrote:

How do I set a signature with meow-js?
Install meowing as an npm module, then use this code (obviously replacing myusername to your username and etc.)

const { ScratchSession }= require("meowing")
var session = new ScratchSession("myusername","mypassword")
session.login().then(async () => {
  var siggy = await session.getSignature()
  await siggy.update("hello world") // sets the signature bbcode to hello world
})
I get this error

Either you need to use a newer version of Node with optional chaining (use a bash repl in replit, I think) or 9gr needs to not use new syntax in his code.

I use scratch.
GF: I'll dump you. BF: hex dump or binary dump?










tryon12345
Scratcher
2 posts

Meow-js: A new API module for communicating to the scratch website.

Cool!
when green flag clicked
set [CoolNess] to [9999]
forever
repeat (CoolNess)
say [Cool!!]
end
end

Last edited by tryon12345 (July 8, 2021 08:33:17)

wvj
Scratcher
1000+ posts

Meow-js: A new API module for communicating to the scratch website.

bump

rgantzos
Scratcher
100+ posts

Meow-js: A new API module for communicating to the scratch website.

This seems really cool and is exactly what I've been looking for, but, how do I download it to a Chromebook that supports some Linux?

i'm rgantzos
kccuber
Scratcher
1000+ posts

Meow-js: A new API module for communicating to the scratch website.

rgantzos wrote:

This seems really cool and is exactly what I've been looking for, but, how do I download it to a Chromebook that supports some Linux?
i don't think you can install node.js in a chromebook. you may be able to download it using the CLI for linux though.
edit: just search how to install nodejs on chromebook

Last edited by kccuber (July 11, 2021 22:08:48)



Made using Nord Theme & Inkscape
9gr
Scratcher
1000+ posts

Meow-js: A new API module for communicating to the scratch website.

it is now published to the github packages registry for some reason as @meow-js/meow-js
dhuls
Scratcher
1000+ posts

Meow-js: A new API module for communicating to the scratch website.

wvj
Scratcher
1000+ posts

Meow-js: A new API module for communicating to the scratch website.

wvj wrote:

I get this error

It works now

Powered by DjangoBB