I’m thinking of looking at the Lemmy api and that’s best done when you have some actual problem to solve!
So, is there any bot that you’d like to see?
I’m thinking of looking at the Lemmy api and that’s best done when you have some actual problem to solve!
So, is there any bot that you’d like to see?
Is it possible to make it comment on a specific post? Mention in does nothing
It probably doesn’t know about the community, or it doesn’t have support for the site. Can you link me to the post (either here, or in PM, it’s up to you).
Edit: Probably found it, it doesn’t have any support for news.sky.com, shall I add it?
Thanks for your answer. idk about adding it, the article sounded interesting but idk how relayable this news site is and how much work it takes. I guess it’s up to you :)
Added it along with the ability to respond to mentions. Once it’s deployed, it should respond to your mention (hopefully, it was kinda huge overhaul of the code).
Worked on my mention :)
Just throwing out an idea, feel free to ignore it XD
I think that if one would write a quick “how to write a site handler” with a built-in template (like I’ve seen used), I’m sure many will contribute and send PRs for their favorite sites. If you’re interested of course. I don’t mind volunteer for doing the writeup either.
If you feel up to it, I’ll gladly accept it! I’m planning on doing it myself, but I’m not sure when I’ll have the time.
How to make a site handler:
In our example:
But, as I went up the tree like the last step said, I found this div:
You might think to go even upper like this:
But as you can see, the browser highlighted parts that aren’t the body of the article itself. So…don’t.
Now that we got the correct div, we’ll fill the siteHandler template like this
Then,
Edit it as you wish, or let me know if you need me to do so. No need for credit obviously, just helping improve this amazing tool is enough :)
Note: I had to use that codefile website because something went wrong with the code markdown, but I guess you can skip it once you put it on github.
deleted by creator
Thank you very much! I’ve saved the comment and when I have time I’ll include it in the repository’s readme.
NP, but I’d advise you to save it somewhere else as a whole as I don’t know for how long that code sharing website host the templates. Although you can easily rewrite this part.
I think I can do it tomorrow, hopefully it won’t slip my mind