def handle_cancel(self, cancel): remove_offer(id=cancel['id'], message_id=cancel['trade-id']) return 'Trade cancelled'
def handle_cancel(self, cancel): remove_offer(id=cancel["id"], message_id=cancel["trade-id"]) return "Trade cancelled"
def handle_confirm(self, confirm): offer = remove_offer(id=confirm['id'], message_id=confirm['trade-id']) trades.append(offer) return 'Trade succesful!'
def handle_confirm(self, confirm): offer = remove_offer(id=confirm["id"], message_id=confirm["trade-id"]) trades.append(offer) return "Trade succesful!"