very minor things, added disguise, code reorganizaiton

This commit is contained in:
Master Kwoth
2016-03-08 22:42:43 +01:00
parent 1bc681e1aa
commit aa62ac21a2
10 changed files with 138 additions and 66 deletions

View File

@ -17,8 +17,9 @@ namespace NadekoBot.Modules {
public Administration() {
commands.Add(new ServerGreetCommand());
commands.Add(new LogCommand());
commands.Add(new MessageRepeater());
commands.Add(new PlayingRotate());
commands.Add(new Commands.RatelimitCommand());
commands.Add(new RatelimitCommand());
}
public override string Prefix { get; } = ".";
@ -392,6 +393,13 @@ namespace NadekoBot.Modules {
.Do(async e => {
await e.Channel.SendMessage(await NadekoStats.Instance.GetStats());
});
cgb.CreateCommand(Prefix + "dysyd")
.Description("Shows some basic stats for Nadeko.")
.Do(async e => {
await e.Channel.SendMessage((await NadekoStats.Instance.GetStats()).Matrix().TrimTo(1990));
});
cgb.CreateCommand(Prefix + "heap")
.Description("Shows allocated memory - OWNER ONLY")
.AddCheck(SimpleCheckers.OwnerOnly())

View File

@ -190,6 +190,18 @@ namespace NadekoBot.Modules {
}
});
cgb.CreateCommand("disguise")
.Description("Tell Nadeko to disguise herself.")
.Do(async e => {
try {
await
e.Channel.SendMessage(
$"{NadekoBot.Config.DisguiseResponses[rng.Next(0, NadekoBot.Config.DisguiseResponses.Length)]}");
} catch {
await e.Channel.SendMessage("Error while handling DisguiseResponses check your data/config.json");
}
});
cgb.CreateCommand("are you real")
.Description("Useless.")
.Do(async e => {