This commit is contained in:
Terry Hearst 2025-01-18 11:39:25 -05:00
parent a6a9ab5ebb
commit d19e31bea0

7
bot.py
View file

@ -224,8 +224,11 @@ class Bot(commands.Bot):
# Requested by linguini15
@commands.command()
async def shape(self, ctx: commands.Context):
platonic_solids = ["tetrahedron", "hexahedron", "octahedron", "dodecahedron", "icosahedron"]
solid = random.choice(platonic_solids)
if random.random() > 0.1:
solid = random.choice(["tetrahedron", "hexahedron", "octahedron", "dodecahedron", "icosahedron"])
else:
# Rarer goofy options
solid = random.choice(["600 cell", "pentachoric trischiliaoctacositetracontateron"])
message = f"did you guys know the marble is a{'n' if solid[0] in ['i', 'o'] else ''} {solid}!?!?!?"
await ctx.send(message)