GitHub - Asudox/lemmy-wikibot-rs: A lemmy bot written in Rust to send summaries of wikipedia articles mentioned in user comments

Asudox@lemmy.world to Open Source@lemmy.ml – 159 points –
GitHub - Asudox/lemmy-wikibot-rs: A lemmy bot written in Rust to send summaries of wikipedia articles mentioned in user comments
github.com

I made this bot so that users who want to provide a quick summary of the wikipedia article they linked to in their comment can do so just by including a mention of the bot in their comment, and the bot will reply to the comment with the summary.

Currently multiple wikipedia links are not supported.

bot: https://lemmy.world/u/wikibot

28

Here's the summary for the wikipedia article you mentioned in your comment:

Hello Internet is an audio podcast hosted by educational YouTube content creators Brady Haran and CGP Grey. The podcast debuted in 2014 and released 136 numbered episodes and 18 unnumbered episodes until February 2020, when the last episode was published. The podcast is currently indefinitely suspended and inactive. Listeners of the podcast are known as "Tims". The episodes of the podcast are usually about the interests of the creators and the differences between the hosts' lifestyles.

^article^ ^|^ ^about^

Here's the summary for the wikipedia article you mentioned in your comment:

Jammie Dodgers are a popular British biscuit, made from shortcake with a raspberry or strawberry flavoured jam filling. Introduced in 1960, they are currently produced by Burton's Biscuit Company at its factory in Llantarnam. In 2009, Jammie Dodgers were the most popular children's sweet biscuit brand in the United Kingdom, with 40% of the year's sales consumed by adults.

^article^ ^|^ ^about^

1 more...

Great job! What about mentioning the bot in the response to a comment that has a Wikipedia link.

Well, that wasn't something I have planned. For now, you can just take the wikipedia link from that parent comment, mention the bot with it and send it as a comment. Will implement that feature, thanks.

The way you mentioned the bot is wrong. Try @wikibot@lemmy.world

Sorry, I could not get the wikipedia summary for the wikipedia link mentioned in your comment.

@Asudox

Mention work OK
Thought bot will show up on Kbin but didn't
There is some issues that some users aren't showing up on kbin.social but wanted to test it anyway.

Another user also using kbin got it to work though. Interesting.

Might be a federation issue. Could be related to LW still being on v18.5.0

4 more...

Does it work if i use Voyagers auto complete function for @‘s? https://en.wikipedia.org/wiki/Hello_Internet

I think bots like these should work without having to be mentioned since they're so useful and unobtrusive.

@wikibot@lemmy.world

Here's the summary for the wikipedia article you mentioned in your comment:

Hello Internet is an audio podcast hosted by educational YouTube content creators Brady Haran and CGP Grey. The podcast debuted in 2014 and released 136 numbered episodes and 18 unnumbered episodes until February 2020, when the last episode was published. The podcast is currently indefinitely suspended and inactive. Listeners of the podcast are known as "Tims". The episodes of the podcast are usually about the interests of the creators and the differences between the hosts' lifestyles.

^article^ ^|^ ^about^

I think bots like these should work without having to be mentioned since they're so useful and unobtrusive.

Could you elaborate further on that?

Like itd be convenient if they worked whenever someone included a wiki link. So people didn’t have to remember to mention its username

About that, well, read this conversation I had with another user that mentioned your idea:

https://lemmy.today/comment/5308154

Ohh ok that’s fair. I just feel like barely anyone will remember to use it

That indeed was my concern when I discussed this with the user that suggested this mention-only setup and also in the long text I sent to the user in the convo I sent you.