This commit is contained in:
Dylan Martini 2024-04-25 18:34:01 -05:00
parent 52da9e6345
commit 9775889c66
5 changed files with 72 additions and 10 deletions

View File

@ -29,7 +29,7 @@ using ImageMagick;
namespace HBot {
class Bot {
public const string VERSION = "1.11";
public const string VERSION = "1.11.1";
public static void Main(string[] args) => new Bot().RunBot().GetAwaiter().GetResult();

View File

@ -0,0 +1,33 @@
using System;
using System.Threading.Tasks;
using DSharpPlus.CommandsNext;
using DSharpPlus.CommandsNext.Attributes;
using DSharpPlus.Entities;
using HBot.Commands.Attributes;
namespace HBot.Commands.Fun {
public class TicketCommand : BaseCommandModule {
[Command("ticket")]
[Description("Tickets from the best tech support rep in the world")]
[Aliases("george")]
[Attributes.Category(Category.Fun)]
public async Task Ticket(CommandContext Context) {
int ticketID = 0;
string ticketUrl = "";
var rand = new Random();
ticketID = rand.Next(1, 223);
ticketUrl = $"https://cdn.chroniclesofgeorge.com/images/{ticketID.ToString().PadLeft(3,'0')}.png";
DiscordEmbedBuilder eb = new DiscordEmbedBuilder();
eb.WithTitle("Random George Ticket");
eb.WithImageUrl(ticketUrl);
eb.WithFooter($"ID: {ticketID}");
eb.WithColor(DiscordColor.Gold);
eb.WithUrl("https://www.chroniclesofgeorge.com/");
await Context.ReplyAsync("", eb.Build());
}
}
}

View File

@ -12,8 +12,7 @@ using RestSharp;
using Newtonsoft.Json;
namespace HBot.Commands.Fun {
public class WikiHowCommand : BaseCommandModule
{
public class WikiHowCommand : BaseCommandModule {
[Command("wikihow")]
[Description("Gets a random out of context wikihow image")]
[Attributes.Category(Category.Fun)]

View File

@ -5,15 +5,15 @@ using DSharpPlus.CommandsNext;
using DSharpPlus.CommandsNext.Attributes;
using HBot.Commands.Attributes;
namespace HBot.Commands.Fun {
public class SpeechBubbleCommand : BaseCommandModule {
namespace HBot.Commands.Images {
public class RandomSpeechBubbleCommand : BaseCommandModule {
private static readonly HttpClient httpClient = new HttpClient();
[Command("speechbubble")]
[Description("Gets a speech bubble meme")]
[Attributes.Category(Category.Fun)]
[Aliases("speech")]
public async Task SpeechBubble(CommandContext ctx) {
[Command("randspeechbubble")]
[Description("Gets a random speech bubble meme")]
[Attributes.Category(Category.Images)]
[Aliases("randspeech")]
public async Task RandomSpeechBubble(CommandContext ctx) {
string funnyUrl = "https://speech.hiden.cc";
using (var response = await httpClient.GetAsync(funnyUrl)) {

View File

@ -0,0 +1,30 @@
using System;
using System.IO;
using System.Net.Http;
using System.Threading.Tasks;
using DSharpPlus.CommandsNext;
using DSharpPlus.CommandsNext.Attributes;
using HBot.Util;
using HBot.Commands.Attributes;
using ImageMagick;
namespace HBot.Commands.Images {
public class SpeechBubbleCommand : BaseCommandModule {
[Command("speechbubble")]
[Description("Resize an image")]
[Usage("[image]")]
[Aliases("speech")]
[Attributes.Category(Category.Images)]
public async Task SpeechBubble(CommandContext Context, [RemainingText]string input) {
Random r = new Random();
int farts = r.Next(shitfuck.Length);
await Context.ReplyAsync($"{shitfuck[farts]}");
}
static string[] shitfuck = new string[] {
"succ is dead. no succ", "BALLS OVER", "hey lois look i'm an unfinished command", "I;m thinking about thos Beans", "Live, laugh, fart"
};
}
}