diff --git a/charts/agimus/Chart.yaml b/charts/agimus/Chart.yaml index ffc3bf3f..d823d061 100644 --- a/charts/agimus/Chart.yaml +++ b/charts/agimus/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: agimus description: A helm chart for a discord bot that also runs a mysql db type: application -version: v2.12.14 -appVersion: v2.12.14 +version: v2.12.15 +appVersion: v2.12.15 diff --git a/commands/curse.py b/commands/curse.py new file mode 100644 index 00000000..242cb4f7 --- /dev/null +++ b/commands/curse.py @@ -0,0 +1,20 @@ +from common import * + +command_config = config["commands"]["curse"] + +# Load JSON Data +f = open(command_config["data"]) +curse_data = json.load(f) +f.close() + +@bot.slash_command( + name="curse", + description="Small Curses for a Kind Heart (apers' Curse Service)" +) +async def curse(ctx:discord.ApplicationContext): + selected_curse = random.choice(curse_data['curses']) + embed = discord.Embed( + description=f"> {selected_curse}", + color=discord.Color.magenta() + ) + await ctx.respond(embed=embed) diff --git a/configuration.json b/configuration.json index 53319fdc..cff0c2bd 100755 --- a/configuration.json +++ b/configuration.json @@ -442,6 +442,12 @@ "data": null, "parameters": [] }, + "curse": { + "channels": [], + "enabled": true, + "data": "data/curses.json", + "parameters": [] + }, "dustbuster": { "channels": [ "after-dinner-conversation" diff --git a/data/curses.json b/data/curses.json new file mode 100644 index 00000000..0ca1bb11 --- /dev/null +++ b/data/curses.json @@ -0,0 +1,22 @@ +{ + "curses": [ + "May every time they open their car door, something they need falls out", + "May they go to their car in the parking lot and find that the drivers side of the car next to them is about 6” too close for comfort every time", + "May their pet inexplicably have lotion on them", + "May their coffee always be slightly too hot when they try to drink it no matter how long they wait", + "May every disaster supervisor retire before the good staff leave", + "May the gas lamp that lights your way burn out and the person who lights it sting their fingers", + "May they bend and break every plastic straw they use but not notice until they're slurping 80% air 20% liquid", + "May every rubber band snap back into their face unexpectedly", + "May there always be a top eyelash stuck to their bottom eyelashes that they can't dislodge", + "May every movie they try to see have a slight audio delay that gets worse as the movie goes on but the employees don't get paid enough to care or fix it for the rest of their life", + "May they briefly misplace all their jewelry before finding it", + "May they get bonked by a pinecone", + "May every bag of chips they open be mostly crushed", + "May every bathroom they enter look like it has just enough toilet paper but then turns out to only have 3 squares less", + "May every doorknob they reach for be weirdly sticky", + "May a pet pee in their favorite shoes and they don't notice until their sock is wet", + "May a pen explode on their favorite shirt", + "May a child yell loudly whenever they are on the phone" + ] +} \ No newline at end of file diff --git a/main.py b/main.py index 03687b1d..4993e4a5 100644 --- a/main.py +++ b/main.py @@ -9,6 +9,7 @@ # Slash Commands from commands.aliases import aliases from commands.badges import * +from commands.curse import curse from commands.dice import dice from commands.dustbuster import dustbuster from commands.fmk import fmk