this post was submitted on 23 Jun 2023
1 points (100.0% liked)

Programming.dev Meta

2456 readers
1 users here now

Welcome to the Programming.Dev meta community!

This is a community for discussing things about programming.dev itself. Things like announcements, site help posts, site questions, etc. are all welcome here.

Links

Credits

founded 1 year ago
MODERATORS
 

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

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 0 points 1 year ago (1 children)

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

[โ€“] [email protected] -1 points 1 year ago

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