summaryrefslogtreecommitdiff
path: root/DiscoBot/Commands/Utility.cs
blob: bbba1a1ec48a8f7d6c7053ac2ed7f61e0aad8dd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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);
        }
    }
}