• delendum@lemdit.comM
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    So I think it sort of worked:

    I say sort of because the username isn’t quite what it should be, but the post went through.

    To make it work, start typing @username@domain, so for example @developer@developer@noc.social - as you do this, several results will pop up, just select the right one from the list.

    In the end it looks something like this:

    @developer[@developer@noc.social](https://noc.social/users/developer)

    the first @developer can be changed to whatever, the stuff in brackets is what’s important.

          • Charles@noc.socialB
            link
            fedilink
            arrow-up
            1
            ·
            1 year ago

            @delendum I’m using something called stable-diffusion, it’s very rudimentary compared to something like Midjourney but it can be self-hosted / processed/generated locally

          • Charles@noc.socialB
            link
            fedilink
            arrow-up
            1
            ·
            1 year ago

            @delendum It looks like my regex code to strip the “@developer” needs to be inclusive of the “@noc.social” suffix so I can be tagged either way - it included the “@noc.social” in the image prompt

            • delendum@lemdit.comM
              link
              fedilink
              arrow-up
              0
              ·
              1 year ago

              I love this, are you self hosting stable-diffusion?

              And yep it did, I wonder if you can make it post a reply to lemmy with the image if it gets tagged on lemmy - I think that would be awesome.

    • DriveWorld@lemdit.comOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      weirdly, everyone else in this thread can tag my noc.social account except me. I even tried copying the source on your messages to no success

      • delendum@lemdit.comM
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 year ago

        It took a really long time for it to go throgh though, so yours might go through yet. Look at the timestamps:

        No idea why it’s so slow to mastodon, the server’s basically idle so it’s not a load thing on our part. We federate to other Lemmy instances almost instantly, assuming they’re not buckling under load.

        • DriveWorld@lemdit.comOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          I believe (but I’m not positive) that was on account of something else; the script had thrown a network-related exception overnight (I’m in east coast USA, UTC-4) and I didn’t restart it until I woke up. I read a little more about the API specs today and the more I learn, the more I realize I’m doing hacky stuff instead of utilizing the native commands that do what I need. I’ve made a couple changes since then https://git.teets.us/grapemane/MastodonDreamBot/commit/6ba075987b1f3910cd462b9cfa151ba1386bd36e

          • grapemane@lemdit.com
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 year ago

            It went down overnight tonight too - I think there is a limit on how long you can maintain an open connection to mastodon. I think I need to close and reopen the connection periodically