stjohann / DiscordWikiBot

Discord bot for Wikimedia projects and MediaWiki wiki sites
https://w.wiki/4nm
MIT License
40 stars 10 forks source link

Add support for linking command to display a short link embed #26

Open fredster33 opened 1 year ago

fredster33 commented 1 year ago

It'd be nice if WikiBot could output an embed when it sends links. This allows people (especially lurkers) to get a basic understanding of what the page is about without needing to click on the link. Here's a mockup:

image

stjohann commented 1 year ago

That’s not something that will be done at any point because WikiBot can output any number of links that are in a message. Additionally, rendering these sorts of embeds takes more time and API requests, whereas current way WikiBot works doesn’t require those.

stjohann commented 1 year ago

Additionally, if we decided to use automatic Discord embeds like described in #25, they fail on links like https://ru.wikipedia.org/wiki/Википедия:Администраторы/Бывшие and display the content of https://ru.wikipedia.org/wiki/Бывшие instead.

Closing this issue as wontfix.

stjohann commented 1 year ago

Re-reading this issue again, I guess this can be done as a new command to display one link at a time like that. This would, at least, mean that people would use this type of links less, and it wouldn’t interfere with the standard way of wiki linking by the bot. Adjusting accordingly.