THEWHITEBOY503 / ConnMudaeClone

This bot is an open-source Discord card game, similar to Mudae. It allows you to draw a card every X hours (default 6), and even trade cards with your friends.
MIT License
5 stars 2 forks source link

gift command #19

Closed MRSKnshnn closed 1 year ago

MRSKnshnn commented 1 year ago

suggested by someone in the gen:unite server; a command similar to !trade where you can give someone a card, but they don't have to give you anything in return. basically just smthn like !gift (id) (user) and it would just give that card to the target user

THEWHITEBOY503 commented 1 year ago

This one could be done pretty easy, I'd just copy paste the code from the trade command, change the syntax and remove the lines where it prompts for confirmation. Should I make it prompt to confirm from the sender, receiver, both, or none?

MRSKnshnn commented 1 year ago

i think sender confirmation would be enough, that way it can be a surprise(????? pings still happen but idk. nice gestures)

THEWHITEBOY503 commented 1 year ago

I can make it work like this:


User: !gift 1234 @Example (or user ID)
Bot: @User, would you like to send card Example Card (1234) to Example? Reply 'yes' or 'no'.
User: yes
Bot: @Example, @User has gifted you Example Card (1234)!
THEWHITEBOY503 commented 1 year ago

I'll try and implement this later tonight.

THEWHITEBOY503 commented 1 year ago

Added to beta bot. Pushing change to main bot around midnight tonight, pushing code to repo now.

THEWHITEBOY503 commented 1 year ago

Pushed to repo. See commit 2824aa1.