I made a python-based Discord bot themed after Bobby Fulbright from Ace Attorney some years ago. I keep meaning to update this and that, and I've been meaning to make a proper page for his documentation for like forever... and never do any of those things, obviously. (And, I might never, considering the state of Discord at this point.) Another thing I'd been meaning to do is make a page for the actual code of his commands, though: bots using discord.py (a python library that consists of a bunch of pre-defined stuff to build a bot out of) are structured about the same way, so it's possible to re-use the code I've written for his commands with very minimal changes if you wanted to add it to your own python-based Discord bot.
So to be clear, this page isn't a tutorial for making your own Discord bot... you'll have to find your own! (Or, maybe, I'll be in a really nice mood next time I edit this page and link to one here.) But you can reference or copy any of the code on this page for your own bot, and it should work with minimal changes. You don't need to ask permission to use these or give credit.
This is a command that generates a random tarot card, in upright or inverted position. Requires import random. By default and without specifying, it draws from all cards, but the user can add "minor" or "major" after the command to draw only from the minor or major arcana. If the user puts something behind the command other than "minor", "major", or "all", the bot returns an error message with explanation how to use the command.
More TBA...