You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With this the user can just send a link like this: https://www.youtube.com/watch?v=CY8E6N5Nzec and Concept identify it a YouTube link and handle that, good for a play command where the bot's user will send a url to the bot.
The text was updated successfully, but these errors were encountered:
renanrcp
changed the title
[ Feature Request ] A Endpoint/Route to auto resolve all links (youtube, soundcloud, bandcamp)
[ FEATURE REQUEST ] A Endpoint/Route to auto resolve all links (youtube, soundcloud, bandcamp)
Oct 13, 2019
That's fair but we will have to take into consideration all forms of urls and so on. We can limit it to /searchHTTPGET only but with more sources and links it will get super messy to keep track of all urls and regex stuff.
We can make a struct with const patterns and a static method for evaluating regex code with Compiled and IgnoreCase flags. But, I also think that regex might fail sometimes so it would be better to make a dictionary with url collection and we can go from there.
With this the user can just send a link like this: https://www.youtube.com/watch?v=CY8E6N5Nzec and Concept identify it a YouTube link and handle that, good for a play command where the bot's user will send a url to the bot.
The text was updated successfully, but these errors were encountered: