this post was submitted on 29 Jan 2024
17 points (94.7% liked)

Lemmy Integrations

274 readers
1 users here now

A community about all integrations with the lemmy API. Bots, Scripts, New Apps, etc.

founded 9 months ago
MODERATORS
 

Hi all !

I apologize if i'm off topic. A friend advised to post here. :)

On jlai.lu i use megathread a lot. Its main goal is to regroup all related posts to a topic and leave a link to the megathread in comment.

Here is an example : https://jlai.lu/post/3905951

So let's explain how it would work, feel free to improve this draft or tell me if it's not feasible. I'm not well tuned zith editing rights

First the user has to create a post with sections and send it to the bot. Then the bot @megathread@lemmy.tdl publish it to the community mentionned by the user.

Example :

@megathread@lemmy.tdl create a post in !agriculture@lemmy.tdl :

Farm
# Vegetable
# Market
# Climate

[!agriculture@lemmy.tdl](/c/agriculture@lemmy.tdl)

I'm an user. I explore lemmy.tdl and see a post Meat market is decreasing in Europe related to the megathread Farm for the section Market and i want to add it to the megathread Farm

So i can call this bot like this : megathread@lemmy.tdl add to Farm section Market (maybe shorter with symbole ?)

Then the bot will do 2 things :

  • Edit the megathread Farm and add * (timestamp of the URL) [Meat market is decreasing in Europe](URL) to the section Market
  • leave a comment with the link to the megathread farm

Timestamp of the url, the date of the newpapers if we can retrieve it.

To remove a link from a section, go to the link you want to remove, and write this :

megathread@lemmy.tdl remove to Farm section Market

So anyone can participate and edit the megathread. It's collaborative :)

Maybe we can find a way to rectrict it to thrusted users so we can avoid Troll, spam...an array of trusted users who can use the bot and its admin ?

Thank for reading my post. What do you think ? :)

you are viewing a single comment's thread
view the rest of the comments
[โ€“] db0@lemmy.dbzer0.com 2 points 9 months ago (1 children)

I could make this sort of bot easily using pythorhead, but I don't quite have the time atm. Still if you know a bit of python, this sounds very doable.

[โ€“] Snoopy@jlai.lu 1 points 9 months ago

Thank :)

Sadly i'm a farmer and don't know any programming language except some code : css and html. Maybe so other people will be interested. :)