summaryrefslogtreecommitdiff
path: root/DiscoBot/Commands/MiscCommands.cs
blob: d60e25d71bbc97e84a0f07d978145a6063af0f62 (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
33
34
35
36
37
38
39
40
namespace DiscoBot.Commands
{
    using System.Threading.Tasks;

    using DiscoBot.Auxiliary;

    using Discord.Commands;

    public class MiscCommands : 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" + RandomMisc.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);
        }

        [Command("spot"), Summary("Echos a message.")]
        [Alias("spotify")]
        public Task SpotiAsync([Remainder, Summary("The text to echo")] string echo)
        {
            var test = new Spotify.WebClient();
            return this.ReplyAsync(string.Join("\n", test.GetPlaylist("")));
        }
    }
}