oftn-oswg / oftn-bot

State of the art IRC bot library & bot for Node.js
http://wg.oftn.org/#projects
Other
90 stars 29 forks source link

fetch title and some stats from youtube #63

Closed sillyslux closed 7 years ago

sillyslux commented 7 years ago

people paste youtube links, and it's just annoying to run into pokemon and dragonball vids. please make the bot load the title and some statistics and paste it to the channel. e.g. on #ubuntu-hr it looks like this: <user> https://www.youtube.com/watch?v=gSrnXgAmK8k <bot> ^ YouTube :: All of our data is GONE! :: Duration: 22:58 :: Views: 2,343,987 uploaded by LinusTechTips :: 89,467 likes :: 1,530 dislikes :: 0 favorites

ljharb commented 7 years ago

oftn-bot seems to pretty intentionally not respond to random triggers, only a short, finite list of explicit triggers.

Adding something like !youtube $link might be nice, but responding to any pasted youtube link seems extreme.

inimino commented 7 years ago

Agreed that parsing random links is not the way to handle people posting off-topic content. Maybe ask them politely not to do that instead.

Extra botspam is not always appreciated in the channel either. That is indeed why we only respond to explicit triggers.

sillyslux commented 7 years ago

ups, if you don't like it feel free to close the pr, i'll leave it open for you to decide. there are not many youtube links in the channel and i certainly wouldn't want the bot to go after every webpage, but youtube i definitely want. the testbot is still online, so you can try, i'll take it down in a couple of hours.