Simp-O-Matic

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

commit 7290a6ede963567f5df051175c3ca1de05d881b5
parent f82f204d54d205e9de4340bc15c4b763f5925e15
Author: Demonstrandum <moi@knutsen.co>
Date:   Sun,  2 Aug 2020 15:34:59 +0100

Access symbol_code from summary.

Diffstat:
Mlib/commands/weather.ts | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/commands/weather.ts b/lib/commands/weather.ts @@ -79,7 +79,7 @@ export default async (home_scope: HomeScope) => { +` ${geo_object.name},` +` ${geo_object.description}`) .setThumbnail( - `https://api.met.no/images/weathericons/svg/${properties.timeseries[0].data.next_1_hours}.svg`) + `https://api.met.no/images/weathericons/svg/${properties.timeseries[0].data.next_1_hours.summary.symbol_code}.svg`) .addFields( { name: 'daytime', value: Math.max(...temps) + '°C',