diff --git a/UPBot Code/Commands/Game.cs b/UPBot Code/Commands/Game.cs index 7006266..8d5daa3 100644 --- a/UPBot Code/Commands/Game.cs +++ b/UPBot Code/Commands/Game.cs @@ -24,27 +24,28 @@ public async Task GameCommand(CommandContext ctx) } [Command("bool")] + [Description("Returns True or False")] public async Task BoolCommand(CommandContext ctx) { - Utils.LogUserCommand(ctx); + UtilityFunctions.LogUserCommand(ctx); await PlayBool(ctx); } [Command("rps")] - public async Task RPSCommand(CommandContext ctx, string kind) + [Description("Play Rock, Paper, Scissors")] + public async Task RPSCommand(CommandContext ctx, [Description("rock | paper | scissors")] string kind) { - Utils.LogUserCommand(ctx); + UtilityFunctions.LogUserCommand(ctx); await PlayRockPaperScissors(ctx, kind); } [Command("rps")] public async Task RPSCommand(CommandContext ctx) { - Utils.LogUserCommand(ctx); + UtilityFunctions.LogUserCommand(ctx); await PlayRockPaperScissors(ctx, null); } - readonly Random random = new Random(); Task PlayBool(CommandContext ctx) @@ -58,7 +59,6 @@ Task PlayBool(CommandContext ctx) default: return ctx.RespondAsync("false"); } - } enum RPSTypes : ushort @@ -70,9 +70,6 @@ enum RPSTypes : ushort Task PlayRockPaperScissors(CommandContext ctx, string kind) { - if (kind == null) - return ctx.RespondAsync("```\nRock Paper Scissors\nUsage pattern: rps [rock|paper|scissors]\n```"); - RPSTypes playerChoice; switch(kind) @@ -94,7 +91,8 @@ Task PlayRockPaperScissors(CommandContext ctx, string kind) if(playerChoice == botChoice) { - return ctx.RespondAsync("@@@\nDRAW!".Replace("@@@", botChoice.ToString())); + //return ctx.RespondAsync("@@@\nDRAW!".Replace("@@@", botChoice.ToString())); + return ctx.Channel.SendMessageAsync(ctx.Member.Mention + "\n@@@\nDRAW!".Replace("@@@", botChoice.ToString())); } if(playerChoice == RPSTypes.Rock && botChoice == RPSTypes.Scissors) {