Hey everyone! Ive made a third bot for the instance called Linker. This bot will automatically detect when you try to reference a certain community and then give both relative and direct links to it in a comment for people to check out.

The usual syntax when you want to reference a community is [email protected] with communityname replaced by the community name and programming.dev replaced with the instance the community is in

It will also detect when you link a community like this https://programming.dev/c/programming

Works for both posts and comments but will only handle communities that have been entered in the bot. To start with I’ve put in the top 50 most active communities in the instance but will put the rest in soon

If you have any suggestions for communities to link in on other instances let me know

Source Code

  • AtegonOPMA
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 year ago

    Unfortunately not possible rn with the information the api currently gives. The only thing you can get in terms of instances is the instance id but you need the name to use it in a link

    The bot might become redundant very soon though since v18 has a feature to autoconvert links into relative links

    • o_o
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      1 year ago

      Ah I see. Well fair enough! Thanks for making it