21Bruce / resolved-bot

Resolved is a resy bot that assists in obtaining difficult or high-end reservations. Although it only works with resy, there is an opentable api in the tree.
BSD 3-Clause "New" or "Revised" License
41 stars 10 forks source link

[BUG]: Login Crash with no payment account #21

Closed 21Bruce closed 11 months ago

21Bruce commented 1 year ago

Is there an existing issue for this bug?

Description of the bug

If logging in with an account that does not have payment set up, bot crashes.

Steps to reproduce

Suppose ###EMAIL### and ###PASSWORD### are the email and password of an account with no payment id.

  1. Start resolved
  2. Type "login -e ###EMAIL### -p ###PASSWORD###"

System Specs

Not needed, this will definitely occur on any platform

Additional Context

This can be fixed with a simple if statement in api/resy/api.go I'm busy but someone else might be interested in solving this one ...