Skip to content
This repository was archived by the owner on May 30, 2021. It is now read-only.
This repository was archived by the owner on May 30, 2021. It is now read-only.

How to send a message to a user #21

Open

Description

@Yoda3D

How do you make a userscript send a message to a certain user, or is it even possible?

Activity

  1. PullJosh commented on Jan 19, 2015

    @PullJosh
    Contributor

    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...
    Oh, and I think MSU uses localstorage, not cookies. But it's basically the same thing (only not at all).

  2. Yoda3D commented on Jan 21, 2015

    @Yoda3D
    MemberAuthor

    Ok, I was hoping that there was some sort of ajax send request or something :P

  3. PullJosh commented on Jan 23, 2015

    @PullJosh
    Contributor

    Not that I'm aware of.

  4. Felizolinha commented on Jan 28, 2015

    @Felizolinha
    Contributor

    If you want to make something like a chat you may want to use SockJS.
    An example of a script that uses it (we would obviously need our own server and we would also need to adapt it to Scratch):
    https://fungustime.pw/tastyplug/tastyplug.js

  5. Yoda3D commented on Jan 28, 2015

    @Yoda3D
    MemberAuthor

    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!

  6. Felizolinha commented on Jan 28, 2015

    @Felizolinha
    Contributor

    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 :)

  7. bates64 commented on Jan 29, 2015

    @bates64
    Contributor

    Heh heh, I made a Node.js chatroom once- and it still works. Maybe we could use that (google hangouts style overlay?)

  8. Yoda3D commented on Jan 29, 2015

    @Yoda3D
    MemberAuthor

    Could we see your script?

  9. PullJosh commented on Jan 31, 2015

    @PullJosh
    Contributor

    Yes please! I've been trying to learn node myself...
    (For a completely unrelated project.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions