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?

        • Rikudou_SageOPA
          link
          English
          21 year ago

          Just write the URL and it should come. It does have to know about your community, though, not sure how exactly that works.

      • @thegiddystitcher@lemm.ee
        link
        fedilink
        English
        11 year ago

        Fyi this is calling out links made with the official autocomplete. I’ve blocked it but does that stop it from replying to me or just stop me from seeing the replies?

        • Rikudou_SageOPA
          link
          English
          11 year ago

          It stops it from replying to you. And the official autocomplete is weird, it produces wrong links and then replaces them on the fly with the correct ones.

          • @thegiddystitcher@lemm.ee
            link
            fedilink
            English
            11 year ago

            Yeah I’m aware not all the app interfaces etc have caught up with the proper links yet. So I’ll just keep including the local ones manually for now to include the most people. Anyway cheers, I post a lot of links so as long as it’s not hassling me with false positives 😄

        • Rikudou_SageOPA
          link
          English
          1
          edit-2
          1 year ago

          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?

          • @XpeeN@sopuli.xyz
            link
            fedilink
            11 year ago

            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 :)

            • Rikudou_SageOPA
              link
              English
              21 year ago

              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).

              • @XpeeN@sopuli.xyz
                link
                fedilink
                1
                edit-2
                1 year ago

                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.

                • Rikudou_SageOPA
                  link
                  11 year ago

                  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.

                  • @XpeeN@sopuli.xyz
                    link
                    fedilink
                    English
                    2
                    edit-2
                    1 year ago

                    How to make a site handler:

                    • Go to your favorite news site (for example: euronews.com)
                    • Go to a random article
                    • Go to the blank space inside of the actual article (Not the summary that’s usually on top)
                    • Right click on that spot and go to inspect

                    In our example:

                    • Then, look at the div HTML element it selected for you, and try to go up to the Parent div element as long as when you select it, only the body of the article get mark. In our example, when I did the inspect step, I got this div element marked:

                    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,

                    • Save that template as SiteHandler.php (in our example, EuronewsSiteHandler.php )
                    • Send PR to the Official AutoTldr repo with the file you just created.
                    • DONE

                    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.