public async Task rate(string link = null) { DateTime czas = time.AddSeconds(10); if (link == null) { link = Context.Message.Attachments.FirstOrDefault().Url; } var builder = new Discord.EmbedBuilder(); builder.WithTitle("Ocena"); builder.AddInlineField("Autor: " + Context.Message.Author.Username, "Obrazek:"); builder.WithImageUrl(link); builder.WithColor(Color.DarkGreen); dbase.chkserver(Context.Guild); string query = "SELECT * FROM `servery` WHERE `nid`='" + Context.Guild.Id.ToString() + "'"; MySqlCommand cmd = new MySqlCommand(query, dbase.connect); var msg = await((ISocketMessageChannel)Context.Guild.GetChannel(ulong.Parse(dbase.Read(cmd).Rows[0][3].ToString()))).SendMessageAsync("", false, builder); await msg.AddReactionAsync(Context.Guild.Emotes.First(e => e.Name == "redbean")); string format = "yyyy-MM-dd HH:mm:ss"; query = "INSERT INTO `timery` (`id`, `user`, `type`, `time`, `text`, `Server`) VALUES (NULL, '" + Context.Message.Author.Id + "', 'rate', '" + czas.ToString(format) + "', '" + msg.Id + "', '" + dbase.Chkserver(Context.Guild.Id.ToString()) + "')"; cmd = new MySqlCommand(query, dbase.connect); dbase.timer(cmd, "rate", czas, (IGuildUser)Context.Message.Author, Context.Guild.Id.ToString(), msg.Id.ToString()); Console.WriteLine(time + "\tRozpoczeto glosowanie obrazka uzytkownika " + Context.Message.Author.Username + "."); }
public async Task info(SocketUser user = null) { if (user == null) { user = Context.Message.Author; } dbase.chkserver(Context.Guild); string query = "SELECT * FROM uzytkownicy as u INNER JOIN `servery` as s ON u.Server = s.id WHERE u.user='******' AND s.nid='" + Context.Guild.Id.ToString() + "'"; MySqlCommand cmd = new MySqlCommand(query, dbase.connect); if (!dbase.HasRows(cmd)) { query = "INSERT INTO `uzytkownicy`(`id`, `user`, `score`, `ranks`, `level`, `link`, `server`) VALUES (null,'" + user.Id.ToString() + "',0 ,null ,1 ,null, '" + dbase.Chkserver(Context.Guild.Id.ToString()) + "')"; cmd = new MySqlCommand(query, dbase.connect); dbase.make(cmd); query = "SELECT * FROM `uzytkownicy` as u INNER JOIN `servery` as s ON u.Server = s.id WHERE u.user='******' AND s.nid='" + Context.Guild.Id.ToString() + "'"; cmd = new MySqlCommand(query, dbase.connect); } DataTable info = dbase.Read(cmd); var builder = new Discord.EmbedBuilder(); builder.WithTitle("Informacje o uzytkowniku " + user.Username); builder.WithThumbnailUrl(user.GetAvatarUrl()); builder.AddField("Ilość punktów:", info.Rows[0][2]); builder.AddInlineField("Poziom:", info.Rows[0][4]); if (info.Rows[0][5] != null && info.Rows[0][5].ToString() != "") { builder.AddInlineField("Deviantart:", info.Rows[0][5].ToString()); } builder.WithColor(Color.DarkGreen); await Context.Channel.SendMessageAsync("", false, builder); }
/// <summary> /// Gets the raffle to be displayed in the server chat /// </summary> /// <param name="price">The cost of one ticket</param> /// <param name="amountOfTickets">How many tickets one person can buy</param> /// <param name="item">The item that is being raffled</param> /// <returns>EmbedBuilder holding the raffle to be displayed</returns> private EmbedBuilder GetRaffleToDisplay(int price, int amountOfTickets, string item) { //Create an embed to show the raffle details Discord.EmbedBuilder raffle = new Discord.EmbedBuilder(); Random ran = new Random(); //Used to get a random number for the color of the embed int color1 = ran.Next(0, 256); int color2 = ran.Next(0, 256); //Get three random numbers for the color int color3 = ran.Next(0, 256); raffle.WithColor(color1, color2, color3); //Add a color to the raffle with RBG values raffle.AddField("Prize", item); //Add the field holding the prize //Display that a raffle was made if (price == 0) //If there is a price per ticket { raffle.AddField("Entry Cost", "Free"); } else { raffle.AddField("Entry Cost", price + " gold"); } if (amountOfTickets > 0) //How many tickets you can purchase { raffle.AddField("Number Of Tickets Per Person", amountOfTickets); } else { raffle.AddField("Number Of Tickets Per Person", "Unlimited"); } return(raffle); }
public async Task chanwoo() { var b = new Discord.EmbedBuilder(); b.WithTitle("븅신쉑"); b.WithColor(new Discord.Color(0, 170, 255)); await Context.Channel.SendMessageAsync("", false, b); }
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); }
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); }
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); }
public async Task Lord() { var b = new Discord.EmbedBuilder(); b.WithTitle("AND LOADED!"); b.WithColor(new Discord.Color(0, 170, 255)); await Context.Channel.SendMessageAsync("", false, b); await Context.Channel.SendMessageAsync("https://ubistatic19-a.akamaihd.net/resource/en-us/game/rainbow6/siege/r6-operator-tachanka_229936.png", false); }
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); }
public async Task help() { var builder = new Discord.EmbedBuilder(); builder.WithTitle("Komendy"); builder.AddInlineField("Memy", "`.dmem <nazwa> <link>` - Dodaje mema na serwer,\n\u200b`.dmemnsfw <nazwa> <link>` - Dodaje mema na serwer **tylko nsfw**,\n\u200b`.umem <nazwa>` - Usuwa mem z serwera,\n\u200b`.memelist` - Pokazuje listę memów"); builder.AddInlineField("Warny", "`.warn <osoba> <powód>` - Daje warna osobie,\n\u200b`.delwarn <osoba> <numer warna>` - Usuwa wybrany warn,\n\u200b`.clearwarns <osoba>` - Czysci wszystkie warny osoby,\n\u200b`.listwarns <[opcjonalnie]osoba>` - pokazuje twoje/czyjes warny."); builder.AddInlineField("Rangi", "`.drank <nazwa>` - range o podanej nazwie.,\n\u200b`.urank <nazwa>` - usuwa range podanej nazwie,\n\u200b`.ranga <nazwa>` - nadaje range o podanej nazwie,\n\u200b`.rangi` - pokazuje spis rang dostępnych na serwerze"); builder.AddInlineField("Fun", "`.patyk <osoba>` - narzędzie wzajemnej motywacji,\n\u200b`.rate <link/zlacznik>` - postuje obrazek na wyznaczonym kanale do oceny przez innych uzytkownikow,\n\u200b`.info <[opcjonalnie]osoba>` - podaje informacje z twojego profilu\n\u200b`.da <link>` - zapisuje link do twojego Deviantartu\n\u200b`.pokazda <[opcjonalnie]osoba>` - podaje link do twojego lub czyjegoś Deviantartu."); builder.AddInlineField("Powitania", "`.welmsg <wiadomosc>` - wiadomosc powitalna,\n\u200b`.welchan <kanal>` - kanal na którym wysyłana będzie wiadomość."); builder.WithColor(Color.DarkGreen); await Context.Channel.SendMessageAsync("", false, builder); }
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); }
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(); } }
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(); }
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()); }
public async Task UserInfo(SocketGuildUser user) { var perms = user.GuildPermissions.ToList(); var allPerms = string.Join(", ", perms); if (user != null) { var answer = new Discord.EmbedBuilder(); answer.WithColor(40, 200, 150); answer.ThumbnailUrl = user.GetAvatarUrl(ImageFormat.Auto); answer.AddField("User Info for " + user, "UserID | " + user.Id); //answer.AddInlineField("User Nickname" + "", user.Nickname); answer.AddInlineField("Server Permissions ", allPerms); answer.AddInlineField("Joined Server at", user.JoinedAt); answer.AddInlineField("Joined Discord at ", user.CreatedAt.DateTime.ToLongDateString()); answer.AddInlineField("User Status ", user.Status); await Context.Channel.SendMessageAsync("", false, answer.Build()); } }
public async Task Github() { //response embed: var embed = new Discord.EmbedBuilder(); embed.Title = "GitHub"; embed.Url = "https://github.com/bman46/InstagramEmbedDiscordBot"; embed.Description = "View the source code, download code to host your own version, contribute to the bot, and file issues for improvements or bugs. [Github](https://github.com/bman46/InstagramEmbedDiscordBot)"; embed.WithColor(new Color(131, 58, 180)); ButtonBuilder buttonGithub = new ButtonBuilder(); buttonGithub.Label = "GitHub"; buttonGithub.Style = ButtonStyle.Link; buttonGithub.Url = "https://github.com/bman46/InstagramEmbedDiscordBot"; ComponentBuilder component = new ComponentBuilder().WithButton(buttonGithub); await RespondAsync(embed : embed.Build(), ephemeral : true, components : component.Build()); }
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"); } }
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); } }
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); } }
public static EmbedBuilder WithColor(this EmbedBuilder builder, float r, float g, float b) => builder.WithColor(new Color(r, g, b));
public static EmbedBuilder WithColor(this EmbedBuilder builder, uint rawValue) => builder.WithColor(new Color(rawValue));
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); } }
public static EmbedBuilder WithColor(this EmbedBuilder builder, System.Drawing.Color color) => builder.WithColor((Color)color);
public static EmbedBuilder WithColor(this EmbedBuilder builder, byte r, byte g, byte b) => builder.WithColor(new Color(r, g, b));