stats collecting works now, optional
- ParseKey and parse ID are now optional. If you don't enter them, logging will be disabled - GoogleAPI key is optional but you won't be able to queue music. - removed testq
This commit is contained in:
@ -83,22 +83,6 @@ namespace NadekoBot.Modules {
|
||||
}
|
||||
});
|
||||
|
||||
cgb.CreateCommand("testq")
|
||||
.Description("Queue a song using a multi/single word name.\n**Usage**: `!m q Dream Of Venice`")
|
||||
.Parameter("Query", ParameterType.Unparsed)
|
||||
.Do(async e => {
|
||||
var youtube = YouTube.Default;
|
||||
var video = youtube.GetAllVideos(e.GetArg("Query"))
|
||||
.Where(v => v.AdaptiveKind == AdaptiveKind.Audio)
|
||||
.OrderByDescending(v => v.AudioBitrate).FirstOrDefault();
|
||||
|
||||
if (video?.Uri != "" && video.Uri != null) {
|
||||
SongQueue.Add(video);
|
||||
|
||||
await e.Send("**Queued** " + video.FullName+ video.Stream().Length);
|
||||
}
|
||||
});
|
||||
|
||||
cgb.CreateCommand("q")
|
||||
.Alias("yq")
|
||||
.Description("Queue a song using a multi/single word name.\n**Usage**: `!m q Dream Of Venice`")
|
||||
|
Reference in New Issue
Block a user