Simp-O-Matic

Dumb Discord bot in TS.
git clone git://git.knutsen.co/Simp-O-Matic
Log | Files | Refs | README | LICENSE

commit 1ff58e167ce26f1a25fb92cbe0e505d621b2be5e
parent 338d479d0872d184adefc04b67254e15ff3ec96e
Author: Demonstrandum <moi@knutsen.co>
Date:   Sun,  2 Aug 2020 14:29:20 +0100

Fix weird typo in weather.ts.

Diffstat:
Mlib/commands/weather.ts | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/lib/commands/weather.ts b/lib/commands/weather.ts @@ -56,10 +56,9 @@ export default async (home_scope: HomeScope) => { .GeoObjectCollection .featureMember[0].GeoObject; - const lon_lat = geo_object.Point.pos - .split(' '); - - weather_info = await fetch(`${WEATHER_URL}?lat=${lon_lat[1]}&lon=${lon_lat{0}}`); + const lon_lat = geo_object.Point.pos.split(' '); + weather_info = await fetch( + `${WEATHER_URL}?lat=${lon_lat[1]}&lon=${lon_lat[0]}`); } catch (e) { return error(e); }