Skip to content

Commit

Permalink
fix: not all commands have parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
ultralapse committed Aug 3, 2024
1 parent d157c7f commit 9e46267
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ def interact(raw_request):
command_name = data["name"]

# The parameters of the command
parameter1 = data["options"][0]["value"]
parameter2 = data["options"][1]["value"]
parameter3 = data["options"][2]["value"]
# parameter1 = data["options"][0]["value"]
# parameter2 = data["options"][1]["value"]
# parameter3 = data["options"][2]["value"]
# The nth parameter is data["options"][n - 1]["value"]


Expand Down

0 comments on commit 9e46267

Please sign in to comment.