sir-lancebot icon indicating copy to clipboard operation
sir-lancebot copied to clipboard

Youtube Command

Open SuperMaZingCoder opened this issue 4 years ago • 4 comments

Description

Implement a .youtube or .yt command to get the top 5 results from YouTube with that search query.

Reasoning

Users can share videos with each other and recommend YouTube tutorials on different topics.

Proposed Implementation

Use the Youtube API.

Would you like to implement this yourself?

  • [x] I'd like to implement this feature myself
  • [ ] Anyone can implement this feature

SuperMaZingCoder avatar Feb 11 '21 16:02 SuperMaZingCoder

I'm a bit afraid that it could be used in a LMGTFY way. That is, instead of linking a tutorial or an article, a person can just invoke that command with a query.

decorator-factory avatar Feb 11 '21 16:02 decorator-factory

Hmm most sir-lancebot commands are locked to the bot channels, and a few others. As long as we don't allow this command within help contexts, I think we should be fine.

HassanAbouelela avatar Feb 11 '21 16:02 HassanAbouelela

@HassanAbouelela That makes sense.

It's also important to set up some sort of rate limit. Besides the documented limits, Google also apparently has some undocumented rate limits, so you just have to be careful.

decorator-factory avatar Feb 11 '21 16:02 decorator-factory

I'm a bit afraid that it could be used in a LMGTFY way. That is, instead of linking a tutorial or an article, a person can just invoke that command with a query.

@decorator-factory I think we have a few other Lancebot commands that are similar such as the Wikipedia, and in-development StackOverflow command, but I think like @HassanAbouelela said, we should be fine as long as we limit its usage.

SuperMaZingCoder avatar Feb 11 '21 16:02 SuperMaZingCoder