Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

Commit

Permalink
fix: lower yes/no input for comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
sibalzer committed Jun 9, 2021
2 parents f3516f3 + f0c0a52 commit 715dc87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/impfbot.py
Expand Up @@ -84,7 +84,7 @@ def check_for_slot() -> None:
while True:
log.error("config file not found")
print("Do you want to use the interface to generate a config? yes/no")
result = input()
result = input().lower()
if result in YES:
log.info("Starting config generator")
start_config_generation()
Expand Down
4 changes: 2 additions & 2 deletions src/validate_config.py
Expand Up @@ -28,7 +28,7 @@
while True:
if not arg['alert']:
print("Do you want to send a test message? yes/no")
result = input()
result = input().lower()

if result in YES or arg['alert']:
alert("Test")
Expand All @@ -42,7 +42,7 @@
if not arg['alert']:
while True:
print("Do you want to see your config? yes/no")
result = input()
result = input().lower()
if result in YES:
print(settings)
break
Expand Down

0 comments on commit 715dc87

Please sign in to comment.