Skip to content

Major Comment Latency Delay #386

Closed
Closed

Description

@MilesWK

Hello!

I created ScratchCat-AI but I am facing issues with latency between when a user posts a comment and when the bot responds. Usually it is 2 minutes, which is fine, but other times it can take 15+ minutes.

Is this Scratchattach's issue? My Code? Scratch? The User?

Thanks!

Activity

  1. minniesBaa commented on Apr 21, 2025

    @minniesBaa

    It's probably Scratch. Comments are kinda glitchy, and like to disappear on you.

    Also, not sure if you're allowed to integrate AI into Scratch or perform social actions like commenting via a bot - just don't quote me on that

  2. MilesWK commented on Apr 21, 2025

    @MilesWK
    ContributorAuthor
  3. kRxZykRxZy commented on Apr 22, 2025

    @kRxZykRxZy

    Scratch doesn't allow bot commenting, read scratch.mit.edu/robots.txt

  4. MilesWK commented on Apr 22, 2025

    @MilesWK
    ContributorAuthor
  5. MilesWK commented on Apr 22, 2025

    @MilesWK
    ContributorAuthor

    Reading that, I am slightly confused. Also, doesn't that mean that Scratchattach is not allowed?

  6. Fluffyscratch commented on Apr 22, 2025

    @Fluffyscratch

    Scratchattach's primary goal is scratch API interactions in general, not specifically comment bots.

  7. minniesBaa commented on Apr 22, 2025

    @minniesBaa

    Well, you can use the social actions features in many ways that isn't "bot commenting" - for example, if you had a script that you would run manually, and wasn't in a loop, that would probably be ok.

    edit: @Fluffyscratch beat me to it

  8. MilesWK commented on Apr 22, 2025

    @MilesWK
    ContributorAuthor

    So looking at robots.txt I don't see anything disallowing. I also am not good with robots.txt files.

  9. minniesBaa commented on Apr 22, 2025

    @minniesBaa

    robots.txt files are for search engine crawlers, like Googlebot, to know where to avoid crawling. I don't see how it could be important to bot commenting.

  10. MilesWK commented on Apr 22, 2025

    @MilesWK
    ContributorAuthor
  11. minniesBaa commented on Apr 22, 2025

    @minniesBaa
  12. Fluffyscratch commented on Apr 22, 2025

    @Fluffyscratch

    robots.txt files are for search engine crawlers, like Googlebot, to know where to avoid crawling. I don't see how it could be important to bot commenting.

    That's what I through, thanks for your confirmation.

  13. kRxZykRxZy commented on Apr 22, 2025

    @kRxZykRxZy

    robots.txt files are for search engine crawlers, like Googlebot, to know where to avoid crawling. I don't see how it could be important to bot commenting.

    Oh

  14. MilesWK commented on Apr 22, 2025

    @MilesWK
    ContributorAuthor

    So looking over Scratch's legal documents I don't see anything that would disallow bot commenting. So, unless anyone could find something that says otherwise, I think the bot will stay.

    But if you do find something else that says otherwise please tell me.

  15. 4 remaining items

  16. kRxZykRxZy commented on May 5, 2025

    @kRxZykRxZy

    We have great wifi, and I have the program pushing a message to the server
    when a comment gets received, and it takes a long time before it receives
    the message and prints the message.
    …

    You can't really fix this because scratch api doesn't have instant refreshing.

  17. MilesWK commented on May 5, 2025

    @MilesWK
    ContributorAuthor

    I think that is the issue. I had about 5 comments in the past hour, and it took 30 minutes for the bot to respond, but when it did, it sent the responses within a minute of each response, even though they were like 5-10 minutes apart. Seems like it does it in batches. It could also have to do with that I am self-hosting on a Raspberry Pi running the DietPi OS.

  18. kRxZykRxZy commented on May 5, 2025

    @kRxZykRxZy

    I think that is the issue. I had about 5 comments in the past hour, and it took 30 minutes for the bot to respond, but when it did, it sent the responses within a minute of each response, even though they were like 5-10 minutes apart. Seems like it does it in batches. It could also have to do with that I am self-hosting on a Raspberry Pi running the DietPi OS.

    Run it on render, it's so much quicker, it's free.

  19. MilesWK commented on May 5, 2025

    @MilesWK
    ContributorAuthor
  20. minniesBaa commented on May 6, 2025

    @minniesBaa

    But does it 24/7 host python?
    …

    I think it runs 24/7 for 25 days a month

    Edit : uhhh read this specifically the warning

  21. kRxZykRxZy commented on May 6, 2025

    @kRxZykRxZy

    But does it 24/7 host python?
    …

    Yeah, you can host I think about two different services, node.js python next.js etc

  22. kRxZykRxZy commented on May 6, 2025

    @kRxZykRxZy

    But does it 24/7 host python?
    …

    I think it runs 24/7 for 25 days a month

    Edit : uhhh read this specifically the warning

    It runs 24/7 all month unless you hit the limits by hosting more than two services

  23. MilesWK commented on May 6, 2025

    @MilesWK
    ContributorAuthor
  24. TheCommCraft commented on May 6, 2025

    @TheCommCraft
    Collaborator
  25. MilesWK commented on May 6, 2025

    @MilesWK
    ContributorAuthor
  26. minniesBaa commented on May 6, 2025

    @minniesBaa

    In case you didn't see this in my previous reply,
    you might want to read the warning on this page

  27. MilesWK commented on May 7, 2025

    @MilesWK
    ContributorAuthor

    @minniesBaa So I am getting two different info. The terms of use linked at the bottom of all scratch pages doesn't say anything. Likewise, reading the wiki and the terms of use linked in the warning, I don't see what they are referencing. I also noticed that at the top of the document it says

    Image

    Are we able to move this over to my discussion page, because I feel like a scratchattach closed issue might not be the place to discuss this, as it is off-topic.

    Edit: Can we move the conversation here?

  28. Repository owner locked and limited conversation to collaborators on May 7, 2025
  29. converted this issue into a discussion #398 on May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions