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:
Kwoth
2016-01-11 20:35:49 +01:00
parent 6c9518020f
commit 066fc00bc7
3 changed files with 16 additions and 29 deletions

View File

@ -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`")