diff --git a/config.template b/config.template index 996cc42..d382953 100644 --- a/config.template +++ b/config.template @@ -45,7 +45,7 @@ URL_TIMEOUT = 10 LogMessagesToFile = False # detect anyone close to the bot -[Sentry] +[sentry] SentryEnabled = True # radius in meters to detect someone close to the bot SentryRadius = 100 diff --git a/modules/settings.py b/modules/settings.py index cac55ac..1787fd8 100644 --- a/modules/settings.py +++ b/modules/settings.py @@ -91,11 +91,11 @@ try: dad_jokes_enabled = config['general'].getboolean('DadJokes', True) solar_conditions_enabled = config['general'].getboolean('spaceWeather', True) - sentry_enabled = config['Sentry'].getboolean('SentryEnabled', True) # default True - secure_channel = config['Sentry'].getint('SentryChannel', 2) # default 2 - sentry_holdoff = config['Sentry'].getint('SentryHoldoff', 9) # default 9 - sentryIgnoreList = config['Sentry'].get('sentryIgnoreList', '').split(',') - sentry_radius = config['Sentry'].getint('SentryRadius', 100) # default 100 meters + sentry_enabled = config['sentry'].getboolean('SentryEnabled', True) # default True + secure_channel = config['sentry'].getint('SentryChannel', 2) # default 2 + sentry_holdoff = config['sentry'].getint('SentryHoldoff', 9) # default 9 + sentryIgnoreList = config['sentry'].get('sentryIgnoreList', '').split(',') + sentry_radius = config['sentry'].getint('SentryRadius', 100) # default 100 meters location_enabled = config['location'].getboolean('enabled', True) latitudeValue = config['location'].getfloat('lat', 48.50)