I have created a reply bot that I posted earlier. With it, I can create any bot that replies to users’ comments with a set message. It can also get information from the comment and include it in the reply if needed.

The reply bot I made is pretty advanced in terms of what it can detect because it uses PCRE2. For example, I can detect only things that start with something, or only things that have specific characters in specific locations and don’t have other characters before or after.

Does anyone know any bots on Reddit that they may want brought to Lemmygrad (other than parenti bot, that’s already been brought over), or have any other ideas for bots that could be added?

  • Bungkarnoenjoyer
    link
    fedilink
    71 year ago

    "A rapist, a snitch, a plagiarist, and a racist walk into a bar. The bartender asks “How’s the new book coming Mr. Orwell?”

  • @Stalins_Spoon@lemmygrad.ml
    link
    fedilink
    61 year ago

    A bot that responds with “Real liberty can exist only where exploitation has been abolished, where there is no oppression of some by others, where there is no unemployment and poverty, where a man is not haunted by the fear of being tomorrow deprived of work, of home and of bread. Only in such a society is real, and not paper, personal and every other liberty possible.” when somebody says liberty

    • Arsen6331 ☭OP
      link
      fedilink
      11 year ago

      Liberty seems like a pretty common word. I don’t want to create a situation where there is so much bot activity that there are more bot replies than human replies, so I am not sure if this would be a good idea. Maybe I should make another post to discuss that. However, less common words, or something like the !archive command I implemented would probably be fine.

      • @redtea@lemmygrad.ml
        link
        fedilink
        11 year ago

        It’s a good quote, but I agree with the caution here. We tend not to get many Reddit liberal types trying to counter communist narratives with a teary-eyed, Braveheart-inspired, ‘but liberty!’ / ‘freedom!’.

        But what if we could summon Stalin like Parenti? You know, for when it just feels right. What about a ‘RealLiberty’ bot?

        • You could always have the bot listen for mentions of itself only instead of being triggered by certain text in comments or posts. There’s a different API endpoint just for person mentions, so it should be possible. Parentibot does it.

  • commiespammer
    link
    fedilink
    41 year ago

    the one where a keyword would trigger a message, like the stalin song or the magic xi bus thingy.

    • Arsen6331 ☭OP
      link
      fedilink
      41 year ago

      Yes, that is what my bot does, but I was thinking more specifically, like which replies people would like to see.

  • In my opinion bots on Lemmygrad should be limited in scope (for now) and provide useful content.

    We are still quite small – to the point everyone knows each other – and there would easily be more bot content than human content if we used them liberally (hah)

    Secondly, as others have said we’re not being assailed by liberals that wander in and so we don’t need bots that preach to the choir. Instead, bots could provide content in a way that’s not possible yet on Lemmy, for example if you know stickers on Discord, it would be possible to summon a picture from the bot by using a command.

    We could also have community-specific bots that provide useful info there, for example links in music or unit conversion in swoletariat.

    • Arsen6331 ☭OP
      link
      fedilink
      1
      edit-2
      1 year ago

      Yes, I agree, having the bot reply to random words found in comments seems like it would not be a great idea for a community as small as Lemmygrad.

      I am currently implementing useful features and commands. The latest feature I’ve implemented automatically detects youtube links and replies with links to two invidious instances (yewtu.be and another random instance I picked out of the list on their site in case yewtu.be is down.). It works for shortened and normal YouTube links, and preserves the parameters (like links that start at a specific time in a video).

      Edit: Here’s a YouTube link to showcase it: https://www.youtube.com/watch?v=aLYe3Cv_pUI&t=12s

  • Arsen6331 ☭OP
    link
    fedilink
    3
    edit-2
    1 year ago

    So far, I’ve implemented !archive https://example.com, that should be pretty useful, but I am just testing right now, so it may not be running when you try it, at least for now.

    All it takes with my bot is the following config (though I probably will tweak that regex a bit):

    [[reply]]
    regex = '!archive (https?)://([/.\w\d]+)'
    msg = '''
    Here are the archive links you requested:
    
    - [archive.vn](https://archive.vn/${1}://${2})
    - [archive.org](https://web.archive.org/web/${1}://${2})
    '''