Someone else did it!

This commit is contained in:
Master Kwoth 2016-04-09 02:01:13 +02:00
parent 84efa58780
commit 2c5bee9a3f

View File

@ -35,10 +35,15 @@ namespace NadekoBot.Modules
cgb.AddCheck(Classes.Permissions.PermissionChecker.Instance); cgb.AddCheck(Classes.Permissions.PermissionChecker.Instance);
cgb.CreateCommand("e") cgb.CreateCommand("e")
.Description("You did it.") .Description("You did it. Or someone else!")
.Parameter("other", ParameterType.Unparsed)
.Do(async e => .Do(async e =>
{ {
await e.Channel.SendMessage($"{e.User.Name} did it. 😒 🔫"); var other = e.GetArg("other");
if (string.IsNullOrWhiteSpace(other))
await e.Channel.SendMessage($"{e.User.Name} did it. 😒 🔫");
else
await e.Channel.SendMessage($"{other} did it. 😒 🔫");
}); });
cgb.CreateCommand("comeatmebro") cgb.CreateCommand("comeatmebro")