Simp-O-Matic

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

commit 74a50e49c26ce9df88e4d06964bda5974e393f49
parent 04a8f892f06a6ff05a2e793e1127f8235ddd9713
Author: knutsen <samuel@knutsen.co>
Date:   Fri, 30 Apr 2021 14:29:18 +0100

Country codes must be lower case for flagcdn.com

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 @@ -124,7 +124,7 @@ export default async (homescope: HomeScope) => { .format(new Date)},` + ` ${geo_object.name},` + ` ${geo_object.description}`, - `https://flagcdn.com/64x48/${country_code}.png`) + `https://flagcdn.com/64x48/${country_code.toLowerCase()}.png`) .setThumbnail( `https://api.met.no/images/weathericons/png/${properties.timeseries[0].data.next_1_hours.summary.symbol_code}.png`) .addFields(