Skip to content

Instantly share code, notes, and snippets.

View EasyThe's full-sized avatar

Seyhan Halil EasyThe

View GitHub Profile
[Command("smite")]
public async Task Hello()
{
string css = "<style>\nbody {\n background-color: transparent;\n margin: 0;\n padding: 0;\n color: white;\n font-size: 30px;\n background-image: url(https://web2.hirez.com/smite-media//wp-content/uploads/2018/05/SMITE-CommunityArt-Chernobog-1080x1920.jpg);\n background-repeat: no-repeat;\n}\n\np {\n margin: 0;\n}\n\n.window {\n width: 800px;\n height: 600px;\n text-align: center;\n padding: 20px;\n}\n\ntable {\n width: 90%;\n height: 90%;\n text-align: center;\n text-transform: capitalize;\n}\n\ntd {\n background-color: rgb(0, 0, 0, 0.5);\n padding: 10px;\n}\n\n.bigText {\n font-size: 25px;\n}\n\n.alignLeft {\n text-align: left;\n}\n</style>";
string html = String.Format("<body>\n <div class=\"window\">\n <table>\n <tbody>\n <tr>\n <td class=\"alignLeft\"><span class=\"bigText\">{0}</span><br /><span class=\"clan\">[BGPro]
[Command("person")]
public async Task GetRandomPerson()
{
string json = "";
using (WebClient client = new WebClient())
{
json = client.DownloadString("https://randomuser.me/api/?gender=male&nat=US");
}
var dataObject = JsonConvert.DeserializeObject<dynamic>(json);
using Discord.Net.Providers.WS4Net;
using Discord.WebSocket;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Discord;
namespace ThothBot