!m gl fix if song is queued with a link, commandlist update

This commit is contained in:
Master Kwoth
2016-05-04 05:19:40 +02:00
parent f7e47f03d6
commit f50b726dd0
3 changed files with 8 additions and 7 deletions

View File

@ -156,7 +156,7 @@ namespace NadekoBot.Classes
var match = new Regex("(?:youtu\\.be\\/|v=)(?<id>[\\da-zA-Z\\-_]*)").Match(keywords);
if (match.Length > 1)
{
return $"http://www.youtube.com?v={match.Groups["id"].Value}";
return $"https://www.youtube.com/watch?v={match.Groups["id"].Value}";
}
var response = await GetResponseStringAsync(
$"https://www.googleapis.com/youtube/v3/search?" +

View File

@ -340,7 +340,7 @@ namespace NadekoBot.Modules.Music
});
cgb.CreateCommand("lo")
.Description("Queues a local file by specifying a full path. **Owner Only!**\n**Usage**: `!m ra C:/music/mysong.mp3`")
.Description("Queues a local file by specifying a full path. **Owner Only!**\n**Usage**: `!m lo C:/music/mysong.mp3`")
.Parameter("path", ParameterType.Unparsed)
.AddCheck(SimpleCheckers.OwnerOnly())
.Do(async e =>