optimizations, tried to fix queue of longs songs.

This commit is contained in:
Master Kwoth
2016-02-28 18:42:34 +01:00
parent 09adb9854c
commit 6e23aa2d67
8 changed files with 90 additions and 46 deletions

View File

@ -368,21 +368,16 @@ namespace NadekoBot.Modules {
cgb.CreateCommand(".stats")
.Description("Shows some basic stats for Nadeko.")
.Do(async e => {
var t = Task.Run(() => {
return NadekoStats.Instance.GetStats(); //+ "`" + Music.GetMusicStats() + "`";
});
await e.Channel.SendMessage(await t);
await e.Channel.SendMessage(await NadekoStats.Instance.GetStats());
});
/*
cgb.CreateCommand(".leaveall")
.Description("Nadeko leaves all servers **OWNER ONLY**")
.Do(e => {
if (e.User.Id == NadekoBot.OwnerID)
NadekoBot.client.Servers.ForEach(async s => { if (s.Name == e.Server.Name) return; await s.Leave(); });
});
*/
cgb.CreateCommand(".prune")
.Parameter("num", ParameterType.Required)
.Description("Prunes a number of messages from the current channel.\n**Usage**: .prune 5")