diff --git a/BotResources.py b/BotResources.py index 0d05b7e..4052be6 100644 --- a/BotResources.py +++ b/BotResources.py @@ -2,6 +2,8 @@ import sound import configparser from os.path import exists +PDB_ACCEPTABLE_HANDLERS = ['gqrx', 'op25'] + def check_if_config_exists(): if exists('./config.ini'): @@ -167,7 +169,7 @@ def get_handler(): handler = None while not handler: handler = str(input(f"Please enter the name of the handler you would like to use:\t")) - if handler == "gqrx": + if handler in PDB_ACCEPTABLE_HANDLERS: return handler elif handler == '': return handler