示例#1
0
        public void SendLogStart(string starter)
        {
            if (Message != null)
            {
                return;
            }
            var embed = new Discord.EmbedBuilder();

            if (Program.BOT_DEBUG)
            {
                embed.Title = "Debug Game Started";
                embed.Color = Discord.Color.Red;
            }
            else
            {
                embed.Title = "Online Game Started";
            }
            embed.WithUrl(MLAPI.Handler.LocalAPIUrl + "/chess/online");
            embed.WithDescription($"{starter} has started an cross-network game of chess.\n" +
                                  $"Click the link title above to view.\n" +
                                  $"To play or spectate, you will need to [review the Terms]({MLAPI.Handler.LocalAPIUrl}/chess/terms#online), " +
                                  $"then [download the client](https://github.com/CheAle14/bot-chess/releases/latest/download/ChessInstaller.exe)");
            var msg = ChessS.DiscussionChannel.SendMessageAsync("[...]", embed: embed.Build()).Result;

            Message = msg;
            updateBoard();
        }
示例#2
0
        public async Task KillMe()
        {
            var b = new Discord.EmbedBuilder();

            b.WithDescription("heheheheheh.............:sob:");
            b.WithColor(new Discord.Color(0, 170, 255));

            await Context.Channel.SendMessageAsync("", false, b);
        }
示例#3
0
    public async Task welcome()
    {
        var b = new Discord.EmbedBuilder();

        b.WithTitle("Welcome");
        b.WithDescription("Enjoy your time here! :smile:");
        b.WithColor(new Discord.Color(0, 170, 255));
        await Context.Channel.SendMessageAsync("", false, b);
    }
示例#4
0
        public async Task Reee()
        {
            var b = new Discord.EmbedBuilder();

            b.WithDescription("REEEEEEEEEEEEEEEEEEEEEEEEEEEEE! :kissing_closed_eyes: ");
            b.WithColor(new Discord.Color(0, 170, 255));

            await Context.Channel.SendMessageAsync("", false, b);
        }
示例#5
0
        public async Task Help()
        {
            var a = new Discord.EmbedBuilder();

            a.WithTitle("Commands");
            a.WithDescription("General Commands\n-- .help // Gives list of commands to use");
            Discord.IDMChannel gencom = await Context.Message.Author.GetOrCreateDMChannelAsync();

            await gencom.CloseAsync();
        }
示例#6
0
    public async Task rules()
    {
        var b = new Discord.EmbedBuilder();

        b.WithTitle("Rules");
        b.WithDescription("-WOAH");

        b.WithColor(new Discord.Color(0, 170, 255));
        await Context.Channel.SendMessageAsync("", false, b);
    }
        public async Task RevIp()
        {
            var b = new Discord.EmbedBuilder();

            b.WithTitle("Here's the ip for the FTB Revelations server!");
            b.WithDescription("rev.gameoutnetwork.com");
            b.WithColor(new Discord.Color(0, 170, 255));

            await Context.Channel.SendMessageAsync("", false, b);
        }
        public async Task Vote()
        {
            var b = new Discord.EmbedBuilder();

            b.WithTitle("Don't Forget To Vote For Amazing Rewards At The Following Websites!");
            b.WithDescription("Vote Link 1 : \n https://ftbservers.com/server/dzZfMJNd/vote \n" +
                              "Vote Link 2 : \n https://www.planetminecraft.com/server/game-out-network/vote/ \n" +
                              "Vote Link 3 : \n http://minecraft-mp.com/server/191690/vote/");
            b.WithColor(new Discord.Color(0, 170, 255));

            await Context.Channel.SendMessageAsync("", false, b);
        }
示例#9
0
        public async Task KickUserAsync(string mention = null, [Remainder] string reason = null)
        {
            IGuildUser user;

            user = Context.Guild.GetUser(MentionUtils.ParseUser(mention));
            var b = new Discord.EmbedBuilder();

            b.WithTitle("User Kicked");
            b.WithDescription(user.Username + "was kicked.");
            await Context.Channel.SendMessageAsync("", false, b.Build());

            await user.KickAsync();
        }
示例#10
0
    public async Task KickAsync(Discord.IGuildUser user, [Remainder] string reason)
    {
        if (user.GuildPermissions.KickMembers)
        {
            var b = new Discord.EmbedBuilder();
            b.WithTitle("User Kicked");
            b.WithDescription(user.Username + "was kicked.");
            b.WithColor(new Discord.Color(0, 170, 255));
            await Context.Channel.SendMessageAsync("", false, b);

            await user.KickAsync();
        }
    }
示例#11
0
    public async Task help()
    {
        var a = new Discord.EmbedBuilder();

        a.WithTitle("Commands");
        a.WithDescription("General Commands\n!help // Gives list of commands to use");
        a.WithColor(new Discord.Color(0, 170, 255));
        Discord.IDMChannel gencom = await Context.Message.Author.GetOrCreateDMChannelAsync();

        await gencom.SendMessageAsync("", false, a);

        await gencom.CloseAsync();
    }
示例#12
0
        public async Task help()
        {
            var a = new Discord.EmbedBuilder();

            a.WithTitle("Commands");
            a.WithDescription("``<<help`` - Gives list of commands to use" +
                              "\n``<<invite`` - Sends you bot invite link in DMs" +
                              "\n``<<search [your request]`` - Information about artist/album/track" +
                              "\n``<<listen [minutes]`` - Listens to your Spotify activity and gives statistics" +
                              "\n``<<listen [minutes] [@mention]`` - Listens to custom user's Spotify activity");
            a.WithColor(Color.Magenta);
            await Context.Channel.SendMessageAsync("", false, a.Build());
        }
示例#13
0
        public async Task Rate([Remainder] string rquestion)
        {
            Random rnd = new Random();

            int rating = rnd.Next(1, 11);

            var b = new Discord.EmbedBuilder();

            b.WithDescription("I give " + rquestion + " a " + rating + " out of 10");
            b.WithColor(new Discord.Color(0, 170, 255));

            await Context.Channel.SendMessageAsync("", false, b);
        }
示例#14
0
        private async Task SendChipAsEmbed(SocketMessage message, Chip toSend)
        {
            var embed = new Discord.EmbedBuilder
            {
                Title = toSend.Name
            };

            if (toSend.Type == "Mega")
            {
                embed.Color = new Color(0x90F8F8); //Megachip Blue
            }
            else if (toSend.Type == "Giga")
            {
                embed.Color = new Color(0xF8C8D8);
            }
            MemoryStream imageStream = new MemoryStream();

            ChipImages.Instance.GetElement(toSend.Element).Save(imageStream, System.Drawing.Imaging.ImageFormat.Png);
            //File.WriteAllBytes("./test.png", imageStream.GetBuffer());
            embed.AddField("Element:", String.Join(", ", toSend.Element), true);
            if (toSend.Skill[0] != "--")
            {
                embed.AddField("Skill", String.Join(", ", toSend.Skill), true);
            }
            embed.ThumbnailUrl = "attachment://unknown.png";
            //embed.ThumbnailUrl = ChipImages.fireURL;
            embed.AddField("Range:", toSend.Range, true);
            if (toSend.Damage != "--")
            {
                embed.AddField("Damage:", toSend.Damage, true);
            }
            if (!toSend.Hits.StartsWith('0'))
            {
                embed.AddField("Hits:", toSend.Hits, true);
            }
            //embed.AddField("Description:", toSend.Description);
            embed.WithDescription(toSend.Description);
            embed.WithFooter(toSend.Type);
            var valToSend = embed.Build();

            //Console.WriteLine(imageStream.Position);
            imageStream.Seek(0, SeekOrigin.Begin); //reset to the beginning because apparently not automatic
                                                   //await message.Channel.SendMessageAsync(embed: valToSend);
                                                   //await message.Channel.SendFileAsync(imageStream, "b1nzy.png");
                                                   //embed: new EmbedBuilder {ImageUrl = "attachment://b1nzy.png"}.Build());
            await message.Channel.SendFileAsync(imageStream, "unknown.png", embed : valToSend);

            imageStream.Dispose();
        }
示例#15
0
文件: Test.cs 项目: Fasuh/bot
        public async Task listwarns(SocketUser user = null)
        {
            if (user == null)
            {
                user = Context.Message.Author;
            }
            dbase.chkserver(Context.Guild);
            string       query = "SELECT  w.reason, DATE_FORMAT(w.date, '%M %e %Y'), w.wanner FROM warny as w INNER JOIN `servery` as s ON w.Server = s.id WHERE w.user='******' AND s.nid='" + Context.Guild.Id.ToString() + "'";
            MySqlCommand cmd   = new MySqlCommand(query, dbase.connect);

            if (dbase.HasRows(cmd))
            {
                string a = "";
                cmd = new MySqlCommand(query, dbase.connect);
                foreach (DataRow row in dbase.Read(cmd).Rows)
                {
                    UInt64             g    = Convert.ToUInt64(row[2]);
                    Discord.IGuildUser nick = Context.Guild.GetUser(g);
                    try
                    {
                        if (nick.Username != "")
                        {
                            a += "**Data:** " + row[1] + "\t**Warnujacy:** " + nick + "\n**Powod:** " + row[0] + "\n\n";
                        }
                    }
                    catch (Exception ex)
                    {
                        Console.WriteLine(time + "\t Bledny warnujacy " + g + " Na serwerze " + Context.Guild.Name + ".");
                        a += "**Data:** " + row[1] + "\t**Warnujacy:** " + row[2] + "\n**Powod:** " + row[0] + "\n\n";
                    }
                }
                var b = new Discord.EmbedBuilder();
                b.WithTitle("Lista warnow");
                b.WithDescription(a);
                b.WithColor(new Discord.Color(0, 170, 255));
                await Context.Channel.SendMessageAsync("", false, b);
            }
            else
            {
                await Context.Channel.SendMessageAsync("brak warnow! :D");
            }
        }
示例#16
0
//        public static Embed CurrentUserEmbed(ICommandContext Context)
//        {
//            Mock database = DatabaseManager.GetMock();
//            DiscordUser atlasAccount = null;
//            try
//            {
//                atlasAccount =
//                    database.Users.FirstOrDefault(x => (x as DiscordUser).Discordid == (long)Context.User.Id);
//
//            }
//            catch
//            {
//                //Log user not registed
//            }
//            Discord.EmbedBuilder eb = BaseBuilder("", "", ColorPicker.UserModule,
//                new EmbedAuthorBuilder().WithName("Information about " + Context.User.Username),
//                Context.User.GetAvatarUrl());
//            if (atlasAccount != null)
//            {
//                eb.Description = "Displaying user information for the " + Names.Systemname + " account";
//                eb.AddField(new EmbedFieldBuilder().WithName(Names.Systemname + " Information").WithValue(
//                    "**Name:** " + atlasAccount.Name + "\n"+
//                    "**Account created:** " + atlasAccount.CreationDate.ToLongDateString()));
//            }
//            else
//            {
//                eb.AddField(new EmbedFieldBuilder()
//                    .WithValue("User is not registed, use -user register to register now.")
//                    .WithName(Names.Systemname + " Account"));
//            }
//            //eb.WithUrl("http://placeholder.com/user/id/111020301023");
//            string discordInformation = "";
//            try
//            {
//                var user = Context.User as IGuildUser;
//                discordInformation += "**Joined at: **" + user.JoinedAt.Value.Date.ToLongDateString() + "\n";
//            }
//            catch
//            {
//                //Log User not in guild
//            }
//            discordInformation += "**Status:** " + Context.User.Status + "\n";
//
//            if (Context.User.Game != null)
//            {
//                discordInformation += "**Currently Playing: **" + Context.User.Game.Value.Name + "\n";
//            }
//            eb.AddField(new EmbedFieldBuilder().WithName("Discord information").WithValue(discordInformation));
//            //if (atlasAccount != null)
//            //{
//            //    if (atlasAccount.Summoners.Count > 0)
//            //    {
//            //        string summoners = "";
//            //        foreach (var summoner in atlasAccount.Summoners)
//            //        {
//            //            summoners += summoner.Region + ": " + summoner.SummonerId; //TODO Make this a Tier
//            //        }
//            //        eb.AddField(new EmbedFieldBuilder().WithName("Summoner Information").WithValue(summoners));
//            //    }
//            //    else
//            //    {
//            //        eb.AddField(new EmbedFieldBuilder().WithName("Summoner Information")
//            //            .WithValue("This user has no summoners."));
//            //    }
//            //}
//            if (atlasAccount != null)
//            {
//                string accountinfo = "User does not have accounts linked\nUser **-HELPCOMMAND** to get started.";
//                if (atlasAccount.SmashAccount.Username != null && (bool)atlasAccount.SmashAccount.IsVerified)
//                {
//                    accountinfo = "**" + Names.SmashLadder + " account:**\n" + atlasAccount.SmashAccount.Username + " "+
//                                   atlasAccount.SmashAccount.Rank;
//                }
//                eb.AddField("Accounts", accountinfo);
//            }
//
//            return eb.Build();
//        }

//        public static Embed CurrentServerEmbed(IGuild guild)
//        {
//            DiscordServer server;
//            var database = DatabaseManager.GetMock();
//            try
//            {
//                server = database.Servers.FirstOrDefault(x => x.ServerId == guild.Id);
//            }
//            catch
//            {
//                server = null;
//            }
//
//            Discord.EmbedBuilder builder = BaseBuilder("", "Information about this server known to " + Names.BotName, ColorPicker.ServerModule, new EmbedAuthorBuilder().WithName(guild.Name), guild.IconUrl);
//            builder.AddField(new EmbedFieldBuilder().WithName("Discord Information")
//                .WithValue("**Name:** " + guild.Name + "\n"
//                           + "**Users:** " + (guild as SocketGuild).Users.Count + "\n"
//                           + "**Created at:** " + guild.CreatedAt.DateTime.ToLongDateString() + "\n"
//                           + "**Owner:** " + guild.GetOwnerAsync().Result.Username));
//            if (server == null)
//            {
//                builder.AddField(new EmbedFieldBuilder().WithName(Names.Systemname + " Information")
//                    .WithValue(
//                        "Server is not linked to an account. Let the owner use -server register *<Tier>* to start"));
//            }
//            else
//            {
//                builder.AddField(new EmbedFieldBuilder().WithName(Names.Systemname + " Information").WithValue(
//                    "**Name: **" + server.Name+"\n"+
//                    "**Description: **"+ server.Description+"\n"+
//                    "**Joined at: **" + server.JoinDateTime.ToLongDateString()+"\n"+
//                    "**Votes: **" + server.Votes));
//            }
//            return builder.Build();
//        }
//
//        public static Embed ServerList(string filter)
//        {
//            Discord.EmbedBuilder builder = BaseBuilder("", "All servers known ordered by votes.", ColorPicker.ServerModule, new EmbedAuthorBuilder().WithName(Names.Systemname + " server list"), null);
//            if (string.IsNullOrEmpty(filter)) //No parameter is given and we should display the full server list
//            {
//                List<DiscordServer> servers = DatabaseManager.GetMock().Servers.ToList();
//                //Add servers from other sources
//                var orderedServers = servers.OrderBy(x => x.Votes).ToList();
//                int maxservers = 5; //Maximal servers to display
//                if (maxservers > orderedServers.Count()) maxservers = orderedServers.Count;
//
//                for (int i = 0; i < maxservers; i++)
//                {
//
//                    builder.AddField(new EmbedFieldBuilder().WithName(orderedServers[i].Name)
//                        .WithValue("**Votes:** " + orderedServers[i].Votes + "\n" +
//                                   "**Description: **" + orderedServers[i].Description));
//                }
//            }
//            return builder.Build();
//        }
        //Base Builder
        public static Discord.EmbedBuilder BaseBuilder(string title, string description, Color color,
                                                       EmbedAuthorBuilder authorBuilder, string thumbnailurl)
        {
            Discord.EmbedBuilder builder = new Discord.EmbedBuilder().WithColor(color).WithFooter(Names.BotName).WithCurrentTimestamp();
            if (!string.IsNullOrEmpty(description))
            {
                builder.WithDescription(description);
            }
            if (!string.IsNullOrEmpty(title))
            {
                builder.WithTitle(title);
            }
            if (authorBuilder != null)
            {
                builder.WithAuthor(authorBuilder);
            }
            if (!string.IsNullOrEmpty(thumbnailurl))
            {
                builder.WithThumbnailUrl(thumbnailurl);
            }
            return(builder);
        }
示例#17
0
        public async Task UserInfoAsync(string mention = null)
        {
            IUser user;

            if (mention == null)
            {
                user = Context.User;
            }
            else
            {
                user = Context.Guild.GetUser(MentionUtils.ParseUser(mention));
            }

            var b = new Discord.EmbedBuilder();

            b.WithTitle("User Info");
            b.WithDescription("Name: " + user.Username + "\n" +
                              "ID: " + user.ToString() + "\n" +
                              "UID: " + user.Id + "\n" +
                              "Status: " + user.Status + "\n" +
                              "Current Activity: " + user.Activity + "\n");
            await Context.Channel.SendMessageAsync("", false, b.Build());
        }
示例#18
0
        public async Task Insult()
        {
            Random rnd = new Random();

            int ball = rnd.Next(1, 22);

            if (ball == 1)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("Ur mom gay lol. :laughing:  ");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 2)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("Your mom is rated E for everyone.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 3)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("You're only here because your mother didn't want to ruin her lipstick.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 4)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("I would insult your mother, but cows are sacred in my country.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 5)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("Villain, I have done thy mother!");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 6)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("Thou elvish-mark'd, abortive, rooting hog!");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 7)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("Thou art rankest compound of villainous smell that ever offended nostril!");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 8)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("Away, you three-inch fool!");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 9)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("I need some chemo for the cancer you're bringing.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 10)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("Thou sodden-witted lord! Thou hast no more brain than I have in mine elbows");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 11)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("He’s always lost in thought. It’s unfamiliar territory.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 12)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("Your ass must be pretty jealous of all the shit that comes out of your mouth.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 13)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("I’m trying my absolute hardest to see things from your perspective, but I just can’t get my head that far up my ass.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 14)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("You should be featured in Logan Paul's next forest video");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 15)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("Out of 100,000 sperm, you were the fastest?");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 16)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("I hear when you were a child your mother wanted to hire somebody to take care of you, but the mafia wanted too much.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 17)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("Hey, you have something on your chin...3rd one down.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 18)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("I know not the difference between thy neck and chin.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 19)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("Why don't you slip into something more comfortable? Like a coma.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 20)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("Why don't you check on eBay and see if they have a life for sale?");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("You're a diabetic Pringle.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
        }
示例#19
0
        public async Task TellAJoke()
        {
            Random rnd = new Random();

            int ball = rnd.Next(1, 21);

            if (ball == 1)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("Three Germans walk into a BAR.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 2)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("What's the best thing about Switzerland? I dunno, but the flag is a big plus.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 3)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("I invented a new word! Plagiarism!");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 4)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("Did you hear about the mathematician who's afraid of negative numbers? He'll stop at nothing to avoid them.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 5)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("My existence... :sob:");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 6)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("Your existence. :ok_hand:");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 7)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("If the Silver Surfer and Iron Man team up, they’d be alloys.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 8)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("Making bad chemistry jokes because all the good ones Argon");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 9)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("Why was the mole of oxygen molecules excited when he walked out of the singles bar? He got Avogadro's number!");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 10)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("A neutron walks into a bar. He asks the bartender, \"How much for a beer?\" The bartender offers him a warm smile and says, \"For you, no charge\".");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 11)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("What do you do with a dead chemist? Barium.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 12)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("Why did the chemist sole and heel his shoes with silicone rubber? To reduce his carbon footprint.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 13)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("What do you call a tooth in a glass of water? A one molar solution.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 14)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("If you're not part of the solution, you're part of the precipitate.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 15)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("What happened to the man who was stopped for having sodium chloride and a nine-volt in his car? He was booked for a salt and battery.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 16)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("What kind of fish is made out of 2 sodium atoms? 2 Na");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 17)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("A friend of mine tried to solve a Chemistree problem, but he got stumped.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 18)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("I heard Oxygen and Magnesium were going out and I was like \"OMg\".");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 19)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("When I try to tell Chemistry jokes, I get no reaction.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("Feminism.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
        }
示例#20
0
        public async Task EightBall([Remainder] string ballquestion)
        {
            Random rnd = new Random();

            int ball = rnd.Next(1, 18);

            if (ball == 1)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("Yes!");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 2)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("No!");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 3)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("Of course!");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 4)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("There's no way in hell!");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 5)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("Maybe.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 6)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("I think so.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 7)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("I don't think so.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 8)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("God would say yes.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 9)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("God would say no.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 10)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("Certainly.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 11)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("I certainly think otherwise.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 12)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("I wouldn't count on it.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 13)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("I'd count on it.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 14)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("From what I can tell? Yes.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 15)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("From what I can tell? No.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else if (ball == 16)
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("I think there's a chance.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
            else
            {
                var b = new Discord.EmbedBuilder();

                b.WithDescription("I don't think there's a chance.");
                b.WithColor(new Discord.Color(0, 170, 255));

                await Context.Channel.SendMessageAsync("", false, b);
            }
        }