From 497a9eded3b785f7f96732c447943cc8bbad284b Mon Sep 17 00:00:00 2001 From: TrueDoctor Date: Tue, 17 Jul 2018 21:18:59 +0200 Subject: Added object oriented dice resolving --- DiscoBot/Commands/MiscCommands.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'DiscoBot/Commands/MiscCommands.cs') diff --git a/DiscoBot/Commands/MiscCommands.cs b/DiscoBot/Commands/MiscCommands.cs index aa3ea1b..4a91081 100644 --- a/DiscoBot/Commands/MiscCommands.cs +++ b/DiscoBot/Commands/MiscCommands.cs @@ -37,6 +37,12 @@ namespace DiscoBot.Commands return this.ReplyAsync("```xl\n" + RandomMisc.Roll(roll) + "\n```"); } + [Command("rd"), Summary("Würfel Dennis ")] + public Task RollDennisAsync([Remainder, Summary("Weapon")] string roll) + { + return this.ReplyAsync("```xl\n" + new Auxiliary.Calculator.StringSolver(roll).Solve() + "\n```"); + } + [Command("general"), Summary("Set General ")] public Task SetGeneralAsync([Remainder, Summary("Set General")] int i = 0) { -- cgit v1.2.3-70-g09d2