Use require_setting in user_time.py and weather.py
This commit is contained in:
parent
d8b625eaa9
commit
724b3380d3
2 changed files with 4 additions and 0 deletions
|
@ -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"]:
|
||||
|
|
|
@ -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"]
|
||||
|
||||
|
|
Loading…
Reference in a new issue