this post was submitted on 08 Jun 2023
38 points (97.5% liked)

Asklemmy

43810 readers
1 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy πŸ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 6 years ago
MODERATORS
 

Hi, I'm learing python and I was thinking about createing Lemmy bot.

top 50 comments
sorted by: hot top controversial new old
[–] bigkahuna1986@lemmy.ml 16 points 2 years ago

Because none of us ever read the article anyway... autotldr bot.

[–] Tatar_Nobility@lemmy.ml 15 points 2 years ago (2 children)

Lemmygrad has a bot which detects youtube, twitter and reddit links in your post and offers links to open source front ends like invidious, nitter and libreddit. It'd be nice if we had one of those.

load more comments (2 replies)
[–] Candid_Technology_66@lemmy.ml 12 points 2 years ago (1 children)

A bot that would find the equivalent to a subreddit on lemmy, or correct users if they link a community incorrectly.

[–] Schedar@beehaw.org 1 points 2 years ago* (last edited 2 years ago)

Definitely this. Was thinking about making a bit myself to do this as the whole direct link thing is such a pain but I don’t have any experience in making bots so I’d be even happier if someone else manages to make one!

Something that automatically converts https://beehaw.org/c/support to [support](/c/support) so they are useable across instances.___

[–] fruitywelsh@lemmy.ml 12 points 2 years ago (1 children)
[–] axb@lemmy.ml 2 points 2 years ago

Beat me to it. Came here to say exactly this.

[–] TheGayDude@lemmy.world 12 points 2 years ago (1 children)

A repost detecting bot might be helpful

[–] Candid_Technology_66@lemmy.ml 4 points 2 years ago (1 children)

there was one on reddit called reportsleuthbot But isn't it a little hard to make? It might be too complex for learning python...

[–] TheGayDude@lemmy.world 1 points 2 years ago
[–] broccoliflyinginsect@lemmy.podycust.co.uk 10 points 2 years ago (1 children)

I've always found the ones that give a Wikipedia summary useful

[–] President_Pyrus@feddit.dk 4 points 2 years ago

Also the one that turned Wikipedia mobile links into desktop ones.

[–] roizor@lemmy.ml 8 points 2 years ago (1 children)

Video/image download bot would be super useful.

I am a bot, and this action was performed automatically.

[–] aqua_synonym@lemm.ee 6 points 2 years ago

You missed the bleep-bloop!

[–] Mcballs1234@lemmy.ml 8 points 2 years ago

Remindme! in 10 years

[–] CannotSleep420@lemmygrad.ml 7 points 2 years ago
[–] ANapSoundsNice@beehaw.org 6 points 2 years ago (1 children)

I saw someone attempt to invoke a !remindme bot in some other thread. I don't know if that's actually something that exists already, but that would probably be useful for people who use it.

[–] Sibbo@sopuli.xyz 3 points 2 years ago

Maybe features like this could actually work as plugins.

[–] fruitywelsh@lemmy.ml 5 points 2 years ago (1 children)

One major bot that is fediverse specific. A community syncing bot. So if two communities from different instances want to, they could have a bot that crossposts everything between each other and delete one deleted between each other. A more advanced feature to have is to have it only do certain tags, so for example !linux@lemmy.ml with a help/question and fedora tags could be auto posted to !fedora@lemmy.ml, and !linux_questions@lemmy.ml .

[–] bionicjoey@lemmy.ca 6 points 2 years ago

On that note, I'd like to see something like "crossposts" supported.

[–] Evkob@lemmy.ca 4 points 2 years ago (1 children)
[–] Mac@lemmy.world 3 points 2 years ago* (last edited 2 years ago) (1 children)
[–] Ruorc@lemmy.ml 4 points 2 years ago

For some LoTR flavoring, Gandalf bot is always welcome.

[–] Treevan@beehaw.org 4 points 2 years ago

Since no one mentioned it,

Stabbot - the video stabilising bot to fix videos that the uploader didn't bother with.

Songfinder bot seems handy to prevent earworms.

Plus a lot of the other ones mentioned. Just helpful bots with a distinct purpose that come in when asked to save time or educate.

[–] deadsuperhero@lemmy.ml 3 points 2 years ago

This isn't necessarily a bot in and of itself...but, could function as one. It would be really cool if bots could reshare content from other fediverse sources into a group automatically, but preserve attribution to the original posters.

Would be really handy for, say, automatically sharing PeerTube videos to a community dedicated to watching them.

[–] itchy_lizard@lemmy.ml 3 points 2 years ago

A bot that listens to and tallys "goodbott" and "bad bot" comments

[–] tmpod@lemmy.pt 3 points 2 years ago

I'm sure something like AutoMod would eventually become useful for community moderators.

[–] 14specks@lemmy.ml 3 points 2 years ago

I really hope it won't be needed, but we should probably have an nwordcount bot ready to go, just in case

[–] lvxferre@lemmy.ml 2 points 2 years ago* (last edited 2 years ago) (6 children)

I'll reply first on more general grounds. In my opinion, bots...

  • should only reply to posts/comments when explicitly requested to, through a standard approach.
  • should be properly tagged as bots, not just their username but also some interface element. And they should never behave in a way that mimics human beings.
  • should have short, succinct output, that doesn't force other users to scroll past a lot of junk.
  • should only have a descriptive output (it gives you info), not prescriptive (it doesn't tell you what to do).

Now, actually answering your question:

  • a bot that links manga, anime and LN references to MyAnimeList, MangaUpdates etc. pages, like u/Roboragi does in Reddit.
  • an unit conversion bot, like @iorale@lemmy.fmhy.ml said, that also works for cooking units. (Specially when Americans say stuff like "half cup of onions", for me it's the same as "a random amount of onion"). I volunteer myself to help out gathering units for that.
  • a simple Wikipedia link bot, that gives you a short excerpt of the Wikipedia link.
[–] primalmotion@lemmy.antisocial.ly 1 points 2 years ago (1 children)
[–] lvxferre@lemmy.ml 1 points 2 years ago* (last edited 2 years ago)

...wow.

I just installed it. I was expecting something like "ah, it knows that a cup should be a certain amount of mililitres, but what if I ask it in grams? Then I put "1 cup sugar", "grams"... and it returned 200g. It couldn't find flour so I used butter, 226g. It works!

Checking /usr/share/units/definitions.units, the devs had the insight to add a lot of cooking stuff to it. Also a way to define your own units. The syntax is an arse but I guess that the bot could handle it.

This would be great as the "guts" of a really good conversion bot.

[–] alex@agora.nop.chat 0 points 2 years ago (1 children)

I was thinking of running an instance which houses just bots. In theory, that'd make it easy to have an easy to remember URL and usernames, like !bgg@bot.pls or something. If I can get a URL that makes sense I might consider something like this. It'd keep it small enough to call, and make sure they're always 100% intentional.

This is mainly because I don't want to be a source of annoyance for anyone, and I've seen too many people annoyed at the "natural response" bots that pop in all the time on reddit.

If they're on their own instance, a whole instance can block that instance if they don't want bots, or block specific bots if they prefer.

[–] ShittyKopper@lemmy.blahaj.zone 1 points 2 years ago* (last edited 2 years ago)

mastodon already has botsin.space, depending on how well lemmy & masto interoperate (in theory they'll be fine because AP, but these kinda things tend to mess up in practice. lemmy still doesn't do authorized fetch afaik) hosting bots there & calling them from lemmy should work.

load more comments (4 replies)
[–] branchial@feddit.de 2 points 2 years ago

Amputatorbot!!

[–] numbers@lemmy.ml 1 points 2 years ago

Automoderator!

[–] Austin-Philp@kbin.social 1 points 2 years ago

RemindMe was super useful

[–] PriorProject@lemmy.world 1 points 2 years ago

There's no bots I'm really missing hard right now, but it's worth recalling that bots are such a popular approach on Reddit specifically because the community has no way to improve reddit directly. If you want to add a feature to reddit, the ONLY way you can do it is to try to parse the text in a post/comment and the have the bot post it's own output as a comment or whatever.

With Lemmy, the code is open source and you can improve it directly. So before writing a bot to hammer the apis of an instance reading every post/comment made to a community, it's worth asking oneself if Lemmy could be improved to natively do the thing without needing a bot. Like for remind-me, what if Lemmy had a native remind-me button that direct-messaged you with a link to a post after some configurable delay. Easier to use, more efficient, no bot needed.

Now, this might be more work than writing a bot. And a bot can be a useful way to prototype some feature. It also means learning rust and JavaScript rather than python, and it means cooperating with Lemmy devs who might have concerns about performance at-scale, maintainability, or user-experience. These concerns will likely make the result better though. It's fine to do stuff via bots, but consider the possibility that directly contributing to improve Lemmy would be a better result that isn't possible in the Reddit ecosystem.

load more comments
view more: next β€Ί