-
Notifications
You must be signed in to change notification settings - Fork 6
How to send a message to a user #21
Comments
Hmm... We couldn't send actual messages, but if you wanted to send a message to the user who is currently using the script, it would be possible to store a cookie (that's an array), which could contain all the messages we want to send. Then the orange message counter (in the navbar) could be changed by the script to add on any messages we want to send, and then display those messages (from the cookie) once the user goes to their messages page. (Then clear the array of messages, because messages always disappear when the message page is viewed.) It would be a pain the in butt to make and would only work for sending messages to the user who is using the script, but it would work... |
Ok, I was hoping that there was some sort of ajax send request or something :P |
Not that I'm aware of. |
If you want to make something like a chat you may want to use SockJS. |
Wow, just the thought of having a built-in chat for scratch makes me think of how awesome this can get! Maybe it would even be possible to make rooms that you invite people to, like for a collab, or a chat with a friend. If we started working on this it would completely revolutionize scratch! |
I've thought about making a chat for Scratch with this some time ago, but I don't know Node.js and can't find a good place to learn how to use it D: I hope you guys know how to use it :) |
Heh heh, I made a Node.js chatroom once- and it still works. Maybe we could use that (google hangouts style overlay?) |
Could we see your script? |
Yes please! I've been trying to learn node myself... |
How do you make a userscript send a message to a certain user, or is it even possible?
The text was updated successfully, but these errors were encountered: