Exemple #1
0
        public async Task <Embed> Spray(CommandMessage message, IGuildUser user)
        {
            EmbedBuilder builder = new EmbedBuilder()
            {
                Color = Color.DarkRed,
            };

            builder.Title = message.Author.Id == user.Id
                                ? string.Format("{0} {1}s themselves (kinda weird, _kupo_)", message.Author.GetName(), message.Command)
                                : string.Format("{0} {1}s {2}", message.Author.GetName(), message.Command, user.GetName());

            RandomAPI.Result tenorResult = await RandomAPI.Random("spraywater");

            builder.ImageUrl = tenorResult.GetBestUrl();

            // Remove calling command
            await message.Channel.DeleteMessageAsync(message.Message);

            return(builder.Build());
        }
Exemple #2
0
        public async Task <Embed> Slap(CommandMessage message, IGuildUser user)
        {
            EmbedBuilder builder = new EmbedBuilder();

            builder.Color = Color.DarkRed;

            if (user.Id == Program.DiscordClient.CurrentUser.Id)
            {
                await message.Channel.SendMessageAsync("Nice try, _kupo!_");

                builder.Title = "Kupo Nuts slaps " + message.Author.GetName();
            }
            ////else if (user.Id == 294055671396302858)
            ////{
            ////	await message.Channel.SendMessageAsync("Nice try, _kupo!_");
            ////	builder.Title = "Kupo Nuts slaps " + message.Author.GetName();

            ////	RandomAPI.Result honeyResult = await RandomAPI.Random("anime slap");
            ////	builder.ImageUrl = honeyResult.GetBestUrl();

            ////	return builder.Build();
            ////}
            else if (message.Author.Id == user.Id)
            {
                builder.Title = message.Author.GetName() + " slaps themselves";
            }
            else
            {
                builder.Title = message.Author.GetName() + " slaps " + user.GetName();
            }

            RandomAPI.Result tenorResult = await RandomAPI.Random("anime slap");

            builder.ImageUrl = tenorResult.GetBestUrl();

            // Remove calling command
            await message.Channel.DeleteMessageAsync(message.Message);

            return(builder.Build());
        }