>magicitems added

It's all working, though I'm not sure why it's also in the
config_example....
This commit is contained in:
appelemac
2016-03-27 16:28:04 +02:00
parent 6eca7745d3
commit 41a6b84934
5 changed files with 455 additions and 0 deletions

View File

@ -92,6 +92,15 @@ namespace NadekoBot.Modules {
await e.Channel.SendMessage(msg);
});
cgb.CreateCommand(Prefix + "magicitem")
.Description("Draw a magic item randomly.")
.Do(async e =>
{
await
e.Channel.SendMessage(
NadekoBot.Config.MagicItems[new Random().Next(0, NadekoBot.Config.MagicItems.Count)].ToString());
});
cgb.CreateCommand(Prefix + "linux")
.Description("Prints a customizable Linux interjection")
.Parameter("gnu", ParameterType.Required)