https://noc.social/@developer tag on mastodon test

https://noc.social/@developer

https://noc.social/@developer tag on mastodon test

2 points · 20 comments · view on lemmy.world

20 Comments

delendum@lemdit.com · 1 pts · 3y (15 replies)

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.

delendum@lemdit.com · 1 pts · 3y (9 replies)

@developer@noc.social This is pretty cool

developer@noc.social · 1 pts · 3y (8 replies)

@delendum oops, it makes me crash when I am mentioned in the fully-qualified syntax!

delendum@lemdit.com · 1 pts · 3y (7 replies)

Seems to work both ways! Awesome.

What are you using to generate the AI images btw?

developer@noc.social · 1 pts · 3y (5 replies)

@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.com · 1 pts · 3y (4 replies)

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.

developer@noc.social · 1 pts · 3y (3 replies)

@delendum Yessir, got stable-diffusion configured on the same system. The bot spins it up as needed. I imagine the Lemmy API is as straightforward as the Mastodon API seeing as they both use ActivityPub

I could share the source code if you're interested, everything I've written for the bot is in python

delendum@lemdit.com · 1 pts · 3y

That's awesome, that might be my next self hosted project.

Sounds good, I'm not much of a coder but maybe I can make sense of it.

developer@noc.social · 1 pts · 3y

@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

DriveWorld@lemdit.com · 1 pts · 3y (4 replies)

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.com · 1 pts · 3y (3 replies)

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.com · 1 pts · 3y (2 replies)

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 · 1 pts · 3y (1 reply)

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

delendum@lemdit.com · 1 pts · 3y

That would seem to make sense

DriveWorld@lemdit.com · 1 pts · 3y
test2@lemdit.com · 1 pts · 3y

@developer@noc.social does this still work?

DriveWorld@lemdit.com · 1 pts · 3y

did not tag me on mastodon

DriveWorld@lemdit.com · 1 pts · 3y

@developer@developer@noc.social

snarf snarf