Use require_setting in user_time.py and weather.py

This commit is contained in:
jesopo 2019-05-23 11:50:12 +01:00
parent d8b625eaa9
commit 724b3380d3
2 changed files with 4 additions and 0 deletions

View file

@ -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"]:

View file

@ -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"]