From 724b3380d302caed53a9fb5d2907bc60f5a9d75c Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 23 May 2019 11:50:12 +0100 Subject: [PATCH] Use require_setting in user_time.py and weather.py --- modules/user_time.py | 2 ++ modules/weather.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/modules/user_time.py b/modules/user_time.py index e5d91a19..2f69e7a7 100644 --- a/modules/user_time.py +++ b/modules/user_time.py @@ -11,6 +11,8 @@ class Module(ModuleManager.BaseModule): """ :help: Get the time for you or someone else :usage: [nickname] + :require_setting: location + :require_setting_unless: 1 """ target_user = event["user"] if event["args"]: diff --git a/modules/weather.py b/modules/weather.py index f434ee89..4504d0e0 100644 --- a/modules/weather.py +++ b/modules/weather.py @@ -16,6 +16,8 @@ class Module(ModuleManager.BaseModule): """ :help: Get current weather for you or someone else :usage: [nickname] + :require_setting: location + :require_setting_unless: 1 """ api_key = self.bot.config["openweathermap-api-key"]