Closed MRSKnshnn closed 1 year ago
Working on this one but it might be a little hard to test since it requires two people
User 1: !trade <ID> @User2
Bot: @User1 wants to trade card ID <ID> with you. Please respond with the card ID you wish to trade, or type decline to decline.
User 2: 4471
Bot: Trade complete! @Connah now has card ID 4471, and @testaccount1738aye has card ID 3.
trading commands and the general flow of a trade interaction would probably work something along these lines:
if user1 doesn't have card1 --
if user1 has card1 --
if user2 declines or if user2 doesn't respond for 60 sec --
if user2 types the id of a card they don't have--
if user2 types the id of a card they do have--
if user1 declines or if user1 doesn't respond for 60 sec --
if user1 accepts --
ok now that the confusing ill-formatted flow tree above is over. once the trade is confirmed, figures it could probably work like remove card1 from user1's collection and add the same card to user2's collection, vice versa to both users also feel free to simplify as much as needed