Skip to content

Commit

Permalink
Apers' Curse Generator (#580)
Browse files Browse the repository at this point in the history
* random apers curse generator

* fixen de derpen
  • Loading branch information
zmattingly authored Jan 17, 2025
1 parent 723055d commit 867626e
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/agimus/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
20 changes: 20 additions & 0 deletions commands/curse.py
Original file line number Diff line number Diff line change
@@ -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)
6 changes: 6 additions & 0 deletions configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,12 @@
"data": null,
"parameters": []
},
"curse": {
"channels": [],
"enabled": true,
"data": "data/curses.json",
"parameters": []
},
"dustbuster": {
"channels": [
"after-dinner-conversation"
Expand Down
22 changes: 22 additions & 0 deletions data/curses.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 867626e

Please sign in to comment.