Hello!

I’ve made a simple source bot and named it Soutaku. The account is @saucechan@ani.social. It can be summoned with a mention, either by the author of a post in the post body itself, or anyone in the comments.

Consider this a beta, functionality is extremely simple so there’s not a lot that can go wrong, but I’ve also not done much testing.

Mentions should work reliably, and make the bot respond no matter what. But Soutaku will also attempt to detect posts that do not include source or artist credit, and comment on these automatically.

Only images linked in the post URL currently work, so trying to summon the bot to find the source for images embedded in the post body or in a comment, won’t work. For now.

I have whitelisted Soutaku for the following communities, feel free to contact me if you’d like any additional communities added.

  • MentalEdgeOP
    link
    fedilink
    English
    arrow-up
    3
    ·
    10 months ago

    It’s “mostly whatever saucenao finds” but I’ve also written some custom parts using pixiv’s and danbooru’s APIs regarding finding a good artist name, as well as some stuff to translate/romanize artist names.

    I plan to add the ability for it to find “uncropped” versions of an image, likely by interacting with google images, as saucenao tends to not get matches if an image has been cropped.

    This does mean that Soutaku inherits saucenaos ability to recognize manga pages (though mangadex or other manga sites wont get parsed into the response atm). Art and promo content that originates on twitter should work.

    Currently it will link ArtStation, DeviantArt, Pixiv, Twitter, and Danbooru, if it finds them.

    Adding some functionality for detecting mentions of series and providing MAL/Anilist/AniDB/Kitsu links would be cool.

    • wjs018@ani.social
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 months ago

      I just tried out saucenao for a handful of visual posts from both communities and nothing was found. Do you have code published anywhere? I would need to figure out how to interface with lemmy to listen in on comments before I could make a links bot. I am not a dev by trade, so I usually heavily rely on existing code as a starting point.

          • MentalEdgeOP
            link
            fedilink
            English
            arrow-up
            2
            ·
            edit-2
            10 months ago

            Then you are familiar.

            Mentions are the easiest thing to implement, as you can pull unreads and mark them read as you go, and thereby do away with the issue of only responding to new items, and only doing so once.

            But you can also use the comment.list endpoint to just pull a feed of comments the same way you would a list of posts. But comments can’t be marked read, so you’ll need to have the bot keep track of what it has already processed.