Ejemplo n.º 1
0
        public async Task GetMoreJpegAsync(string url, int amount = 1)
        {
            if (amount > 10 || amount < 1)
            {
                await ReplyAsync("JPEG amount incorrect. Number should be above 0 and under 11");
            }

            var request  = HttpBuilder.BuildJpegRequest(url);
            var response = HttpBuilder.MakeRequest(request);

            if (response.ResponseUri.Segments.Length == 1)
            {
                await ReplyAsync("Could not JPEG image; is the url a direct link?");
            }

            var responseHeadersCollection = response.ResponseUri;

            for (int i = 1; i < amount; i++)
            {
                request  = HttpBuilder.BuildJpegRequest("http://morejpeg.com/Image/JPEG/" + responseHeadersCollection.Segments[3].ToString());
                response = HttpBuilder.MakeRequest(request);
                responseHeadersCollection = response.ResponseUri;
            }
            var imageUrl = "http://morejpeg.com/Image/JPEG/" + response.ResponseUri.Segments[3].ToString();

            EmbedBuilder builder = new EmbedBuilder();

            builder.WithColor(3447003)
            .WithTitle($"{amount}x JPEG requested by {Context.User.Username}")
            .WithFooter(CustomEmbedBuilder.EmbedFooter(Context))
            .ImageUrl = imageUrl;

            await ReplyAsync("", false, builder.Build());
        }
Ejemplo n.º 2
0
        public async Task SendRaidPhotoAsync()
        {
            EmbedBuilder builder = new EmbedBuilder();

            builder.WithColor(3447003)
            .WithImageUrl("https://i.gyazo.com/f15026bba9f7adb2d78135869567939a.png")
            .WithFooter(CustomEmbedBuilder.EmbedFooter(Context));

            await ReplyAsync("", false, builder.Build());
            await ReplyAsync("");
        }
Ejemplo n.º 3
0
        public async Task SendTomAsync()
        {
            EmbedBuilder builder = new EmbedBuilder();

            builder.WithColor(3447003)
            .WithTitle($"Tom picture requested by {Context.User.Username}")
            .WithFooter(CustomEmbedBuilder.EmbedFooter(Context))
            .ImageUrl = "https://i.gyazo.com/34e5abdccafb8313b6d8fcf607a7ab6a.png";

            await ReplyAsync("", false, builder.Build());
        }
Ejemplo n.º 4
0
        public async Task SendGerbenAsync()
        {
            EmbedBuilder builder = new EmbedBuilder();

            builder.WithColor(3447003)
            .WithTitle($"Gerben picture requested by {Context.User.Username}")
            .WithFooter(CustomEmbedBuilder.EmbedFooter(Context))
            .ImageUrl = "https://image.prntscr.com/image/bd9a127e4fda43f1adffed6a6523d14d.png";

            await ReplyAsync("", false, builder.Build());
        }
Ejemplo n.º 5
0
        public async Task DefaultJeroenAsync()
        {
            EmbedBuilder builder = new EmbedBuilder();

            builder.WithColor(3447003)
            .WithTitle("Use the '!jeroen <boss>' to see Jeroens gear that he uses for that boss")
            .WithDescription("Note: these setups might be outdated.")
            .AddField("corp", "Gear used at Corporeal Corporeal Beast.")
            .WithFooter(CustomEmbedBuilder.EmbedFooter(Context));

            await ReplyAsync("", false, builder.Build());
        }
Ejemplo n.º 6
0
        public async Task ChangeNameAsync([Remainder] string name)
        {
            var currentUsername = Context.Guild.CurrentUser.Nickname;
            await Context.Guild.CurrentUser.ModifyAsync(x => x.Nickname = name);

            EmbedBuilder builder = new EmbedBuilder();

            builder.WithColor(3447003)
            .WithTitle($"{Context.User.Username} requested a nickname change.")
            .WithDescription($"*{currentUsername}* => *{name}*")
            .WithFooter(CustomEmbedBuilder.EmbedFooter(Context));

            await ReplyAsync("", false, builder.Build());
        }
Ejemplo n.º 7
0
        public async Task DefaultSiebrenAsync()
        {
            EmbedBuilder builder = new EmbedBuilder();

            builder.WithColor(3447003)
            .WithTitle("Use the '!siebren <boss>' to see Siebrens gear that he uses for that boss")
            .WithDescription("Note: these setups might be outdated.")
            .AddField("raids", "Gear used at raids (Before entering).")
            .AddField("midraids", "Gear used before Ohlm")
            .AddField("dks", "Gear used at DKS.")
            .AddField("gorillas", "Gear used at Demonic gorilla's.")
            .AddField("tankbandos", "Gear used as tank at Bandos.")
            .AddField("gargoyle", "Gear used at Gargoyle boss.")
            .AddField("corp", "Gear used at Corporeal Corporeal Beast.")
            .AddField("vorkath", "Gear used at vorkath.")
            .WithFooter(CustomEmbedBuilder.EmbedFooter(Context));

            await ReplyAsync("", false, builder.Build());
        }
Ejemplo n.º 8
0
        public async Task HelpAsync()
        {
            EmbedBuilder builder = new EmbedBuilder();

            builder.WithColor(3447003)
            .WithTitle("This bot used the '!' (exclamation mark) prefix.")
            .WithDescription("{this is required} [this is optional].")
            .AddField("help", "Will show all commands with their instructions.")
            .AddField("randompost {subreddit}", "Will return a random post from given subreddit with it's details.")
            .AddField("pepe", "Will return a random pepe with it's details.")
            .AddField("emoji {text}", "Will turn your text into emoji's.")
            .AddField("morejpeg {text} [jpegamount]", "Will turn your text into emoji's. jpegamount defaults to 1 and can't be lower than 1 or higher than 10.")
            .AddField("name {text}", "Will change the nickname of the bot.")
            .AddField("tom", "Will return an image of the almighty Tom.")
            .AddField("gerben", "Will return an image of the almighty Gerben.")
            .AddField("siebren [boss]", "Returns Siebrens boss gear used at requested boss.")
            .AddField("raids", "Returns raids cycle.")
            .WithFooter(CustomEmbedBuilder.EmbedFooter(Context));

            await ReplyAsync("", false, builder.Build());
        }