Esempio n. 1
0
        public async Task YbaAsync()
        {
            var lastMsg = (await _misc.GetPreviousMessageAsync(Context.Channel as SocketTextChannel)).Content;

            if (lastMsg.Length > 100)
            {
                await ReplyAsync($"Message too long (max of 100 characters; your message was {lastMsg.Length} long.)");

                return;
            }

            string msg = lastMsg.Any() ? lastMsg : "ez";

            var split         = new List <string>(msg.Split(' '));
            var ct            = msg.Count(x => !char.IsWhiteSpace(x));
            var sentenceCount = msg.Count(x => x == '.' || x == '?' || x == '!');

            if (sentenceCount < 1)
            {
                sentenceCount = 1;
            }

            await ReplyAsync($"\"{msg}\" He had done it, through the typing of just {split.Count}" +
                             $" word{(split.Count > 1 ? "s" : "")}, {ct} glyph{(ct > 1 ? "s" : "")}, " +
                             $"{sentenceCount} sentence{(sentenceCount > 1 ? "s" : "")}, he had won the argument. His cheeto-dusted fingers were raised high in jubilation as his opponent had no relevant response. He bound to finally get laid, his 31 years of virginity coming to an end. He froze at the sound of a beep, it was his microwave. His taquitos were ready, and he lifted himself up from his chair leaving and orange stain on the black matte finish. An expensive chair his parents had bought him for being a good boy. He sat back down, opened an incognito tab and started to do his business to his 3000 JoJo waifus. Taking a bite of his taquito, the entirety of the insides were spilled onto his sad, erect weiner, leaving only a concoction of s***n, salsa, and depression. All in the day of an YBA player.");
        }
Esempio n. 2
0
        public async Task SquidwardSuicideAsync()
        {
            var    lastMsg = (await _misc.GetPreviousMessageAsync(Context.Channel as SocketTextChannel)).Content;
            var    split   = new List <string>(lastMsg.Split(' '));
            string msg;
            var    ct = split.Count;

            if (ct < 2)
            {
                msg = "squidward suicide";
            }
            else
            {
                split[ct - 2] = "squidward";
                split[ct - 1] = "suicide";

                msg = string.Join(' ', split);
            }

            await ReplyAsync(msg);
        }
Esempio n. 3
0
        public async Task MemeAsync()
        {
            var previousMsg = await _misc.GetPreviousMessageAsync(Context.Channel as SocketTextChannel);

            if (string.IsNullOrEmpty(previousMsg.Content))
            {
                return;
            }

            var url = (await _img.GetRedditImageAsync("earthporn", Context.Guild.Id, false)).Url;
            var img = await _img.DrawTextAsync(url, previousMsg.Content.Replace("\\", ""));

            _img.BackgroundColor(img, _rand.RandomNumber(0, 255), _rand.RandomNumber(0, 255), _rand.RandomNumber(0, 255));
            _img.Saturate(img, _rand.RandomFloat(5));
            _img.Brightness(img, _rand.RandomFloat(1, 5));
            _img.Blur(img, _rand.RandomFloat(5));
            _img.Pixelate(img, _rand.RandomNumber(1, 4));
            _img.Sharpen(img, _rand.RandomFloat(5));
            _img.Jpeg(img, _rand.RandomNumber(1, 15));

            await _img.SendToChannelAsync(img, Context.Channel, new MessageReference(Context.Message.Id));
        }