rip doesn't require a mention, finished ~lolchamp

This commit is contained in:
Master Kwoth
2016-02-23 10:42:42 +01:00
parent 19b4e7d401
commit 755f70cc11
2 changed files with 44 additions and 14 deletions

View File

@ -256,12 +256,14 @@ namespace NadekoBot.Modules {
cgb.CreateCommand("rip")
.Description("Shows a grave image of someone with a start year\n**Usage**: @NadekoBot rip @Someone 2000")
.Parameter("user", ParameterType.Optional)
.Parameter("user", ParameterType.Required)
.Parameter("year", ParameterType.Optional)
.Do(async e => {
if (string.IsNullOrWhiteSpace(e.GetArg("user")))
return;
var usr = e.Channel.FindUsers(e.GetArg("user")).FirstOrDefault();
string text = "";
text = usr?.Name;
text = usr?.Name ?? e.GetArg("user");
await e.Channel.SendFile("ripzor_m8.png", RipName(text, e.GetArg("year") == "" ? null : e.GetArg("year")));
});
if (!NadekoBot.creds.DontJoinServers) {