From 3453479235bec9ec61b3e9dd95aef66a78fe6296 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 19 Feb 2020 17:29:10 +0000 Subject: utilise @utils.export for function exporting in more places --- modules/location.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/location.py') diff --git a/modules/location.py b/modules/location.py index dfef9244..08c8b1fd 100644 --- a/modules/location.py +++ b/modules/location.py @@ -11,8 +11,8 @@ class Module(ModuleManager.BaseModule): setting = utils.FunctionSetting(self._get_location, "location", "Set your location", example="London, GB") self.exports.add("set", setting) - self.exports.add("get-location", self._get_location) + @utils.export("get-location") def _get_location(self, s): page = utils.http.request(URL_OPENCAGE, get_params={"limit": "1", "q": s, "key": self.bot.config["opencagedata-api-key"]}).json() -- cgit v1.3.1-10-gc9f91