Add Rolls to !rank

This commit is contained in:
runebaas 2017-12-29 01:03:38 +01:00
parent cb9c7c97dc
commit 08b36c1850
No known key found for this signature in database
GPG key ID: 2677AF508D0300D6

View file

@ -37,13 +37,12 @@ namespace Geekbot.net.Commands
{ {
var type = typeUnformated.ToCharArray().First().ToString().ToUpper() + typeUnformated.Substring(1); var type = typeUnformated.ToCharArray().First().ToString().ToUpper() + typeUnformated.Substring(1);
if (!type.Equals("Messages") && !type.Equals("Karma")) if (!type.Equals("Messages") && !type.Equals("Karma") && !type.Equals("Rolls"))
{ {
await ReplyAsync("Valid types are '`messages`' and '`karma`'"); await ReplyAsync("Valid types are '`messages`' '`karma`', '`rolls`'");
return; return;
} }
var replyBuilder = new StringBuilder(); var replyBuilder = new StringBuilder();
if (amount > 20) if (amount > 20)
@ -113,6 +112,9 @@ namespace Geekbot.net.Commands
case "Karma": case "Karma":
replyBuilder.Append($" - {user.Value} Karma"); replyBuilder.Append($" - {user.Value} Karma");
break; break;
case "Rolls":
replyBuilder.Append($" - {user.Value} Guessed");
break;
} }
replyBuilder.Append("\n"); replyBuilder.Append("\n");