summaryrefslogtreecommitdiff
path: root/DiscoBot/Commands/Utility.cs
diff options
context:
space:
mode:
authorTrueDoctor <d-kobert@web.de>2018-04-09 00:54:19 +0200
committerTrueDoctor <d-kobert@web.de>2018-04-09 00:54:19 +0200
commit82f07c959dc7a87251b4617e462003471e3cc071 (patch)
tree37c397e9d7ae74c74b2afad3dae940237327b755 /DiscoBot/Commands/Utility.cs
parentcac1ade8763605c3cf09859a48358cab0e00027a (diff)
Refactoring and Cleanup
Diffstat (limited to 'DiscoBot/Commands/Utility.cs')
-rw-r--r--DiscoBot/Commands/Utility.cs32
1 files changed, 32 insertions, 0 deletions
diff --git a/DiscoBot/Commands/Utility.cs b/DiscoBot/Commands/Utility.cs
new file mode 100644
index 0000000..bbba1a1
--- /dev/null
+++ b/DiscoBot/Commands/Utility.cs
@@ -0,0 +1,32 @@
+namespace DiscoBot.Commands
+{
+ using System.Threading.Tasks;
+
+ using DiscoBot.Auxiliary;
+
+ using Discord.Commands;
+
+ public class Utility : ModuleBase
+ {
+ [Command("r"), Summary("Würfelt ")]
+ [Alias("R", "Roll", "roll", "Würfle")]
+ public Task RollAsync([Remainder, Summary("Weapon")] string roll)
+ {
+ return this.ReplyAsync("```xl\n" + Misc.Roll(roll) + "\n```");
+ }
+
+ [Command("general"), Summary("Set General ")]
+ public Task SetGeneralAsync([Remainder, Summary("Set General")] int i = 0)
+ {
+ Dsa.GeneralContext = this.Context;
+ return this.Context.Channel.SendMessageAsync($"```xl\n Der Dachs hat in '{this.Context.Channel.Name}' ein Zuhause gefunden. Gm Nachrichten werden nun auch in diesem Channel gepostet. \n```");
+ }
+
+ [Command("say"), Summary("Echos a message.")]
+ [Alias("s")]
+ public Task SayAsync([Remainder, Summary("The text to echo")] string echo)
+ {
+ return this.ReplyAsync(echo);
+ }
+ }
+}