static public void CreateCommand(Commands.CommandGroupBuilder group, string name, string[] aliases = null) { CreatePLCmd(group, name, $"youtube video link(s)", $"I'll add youtube videos to the playlist", aliases) .Do(e => { MatchCollection m = regex.Matches(e.Args[0]); if (m.Count == 0) { e.Channel.SendMessage($"None of {e.Args[0]} could be added to playlist because no valid youtube links were found within."); } else { foreach (var link in from Match match in m select $"youtube.com/watch?v={match.Groups[1]}") { Triad(e, VideoData.Get(link)); } } }); }