From c0834b3ab4198e4d8024d820252d1eb024e8e964 Mon Sep 17 00:00:00 2001 From: Dustin Pianalto Date: Fri, 4 May 2018 10:31:18 -0800 Subject: [PATCH] Add map location --- exts/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exts/utils.py b/exts/utils.py index 999dcc4..4005eb0 100644 --- a/exts/utils.py +++ b/exts/utils.py @@ -600,7 +600,7 @@ class Utils: self.bot.loop.create_task(ctx.send(file=discord.File(img, f'{location} map.png'))) async with self.bot.aio_session.get( - f'https://api.opencagedata.com/geocode/v1/json?q={location}&key={bot.geo_api}') as result: + f'https://api.opencagedata.com/geocode/v1/json?q={location}&key={self.bot.geo_api}') as result: data = await result.json() await self.bot.loop.run_in_executor(self.bot.tpe, gen_image, data['results'][0]['geometry'])