![]() ![]() I can't use a while loop in the !marriage command because it'll never leave the command until the 30 seconds are up, and I can't put the "y" or "n" commands in !marriage either because they won't be picked up by the mentioned person, only the author who originally initiated the command. If = marriage_author and marriage_active = 0:Īwait nd_message(message.channel, author + " denied 's proposal. If = author:Īwait nd_message(message.channel, author + " you cannot tag yourself!")Īwait nd_message(message.channel, author + " said yes! :heart:") Here it is: import discordĪwait nd_message(message.channel, author + " you must tag another user!") I've already tackled most of this, but I'm still kind of new to Python and I simply can't get this to work, and I feel the code I have written is tedious and sloppy. If the mentioned person fails to answer within those 30 seconds, a message appears and the command is usable. If the mentioned person does either of these the countdown will stop, a message appears, and the command is usable once more. The mentioned person must either type "y" or "n" to accept the proposal or deny it within the 30 second countdown. The command is no longer usable by anyone else until the initiated 30 second timer finishes. A generalization of what I want:Ī user types !marriage in the chat and mentions a person they wish to "marry". ![]() The database that I use is Postgres, and the SQL to generate the database and all relevant tables is included in the config folder, though you will have to edit and rename the config/config.json file to work properly for your database setup.Īfter you set up the database, redis, and Graphviz, install the requirements (which are listed in requirements.txt) and you're good to go.I'm trying to create a marriage command for a Discord Bot (don't ask me why) and I can't figure out how to get it to countdown 30 seconds to receive input from a mentioned person. To host this bot yourself, you will need to install Python 3.6 or above, as well as the Discord.py rewrite (listed in requirements.txt). You'll always be able to mention the bot to get its attention, so don't worry about forgetting the prefix). ![]() ged file.įor when m! isn't good enough (you must have the manage_guild permission to run this command. M!treefile you the full family tree output for the given user as a. The bot needs to be able to send images to do this. M!globaltree the family tree of the given user across all servers (since families persist over different servers). M!tree the family tree of the given user on the server the command was called from. M!familysize you the amount of people in your family tree. M!relationship you the relationship beteween the two given users (or the first user and yourself). M!emancipate equivelant of running away from home. M!disown you to disown one of your children. This will further restrict you from the dating pool, but makes your fake family trees look cooler. M!makeparent the person to be your parent. M!adopt you try to adopt the mentioned user. M!divorce does the opposite of the marry command, as you can imagine. They, of course, can then deny your proposal, but that's unimportant M!propose command allows you to initiate a marriage with another user. Just say something along the lines of "yes" or "no" into chat, and it'll interpret that from there. Note: there's no command to accept or decline a proposal. Thanks to Graphwiz for being a free piece of software that I can use at my leisure.Ī thank you to for making the external website for me while I worked on other stuff. Thank you to Adrien Vergé for familytreemaker.py, which I used for a long while before I came up with my own code for the same thing. Thanks to all of you on the Landfall Games server for helping with the testing, especially Danny who I agreed I would give a specific shoutout too. ![]() If you like what I do, then feel free to help out. Here's a family tree you can make through marrying and adopting various users: There are no benefits or drawbacks to being married. What it does is allows two users to get married. This is a small Discord bot intended to bring love to your Discord servers. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |