Simp-O-Matic

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

commit 04a8f892f06a6ff05a2e793e1127f8235ddd9713
parent d8319fcce539e2c66e966f5608255107014c9e03
Author: knutsen <samuel@knutsen.co>
Date:   Fri, 30 Apr 2021 14:17:54 +0100

countryflags.io is dead 😢, use flagcdn.com.

Diffstat:
Mlib/commands/weather.ts | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/commands/weather.ts b/lib/commands/weather.ts @@ -41,6 +41,10 @@ export default async (homescope: HomeScope) => { ? args.join(' ') : CONFIG.weather_locations[message.author.id] || 'Cuckfield'; + if (location == 'Cuckfield') + message.answer("You should set your default weather location." + + ` Use \`${CONFIG.commands.prefix}weather set <location>\`.`); + const geokey = SECRETS.yandex.geocoder.key; const error = (e: Error) => { @@ -120,7 +124,7 @@ export default async (homescope: HomeScope) => { .format(new Date)},` + ` ${geo_object.name},` + ` ${geo_object.description}`, - `https://www.countryflags.io/${country_code}/shiny/64.png`) + `https://flagcdn.com/64x48/${country_code}.png`) .setThumbnail( `https://api.met.no/images/weathericons/png/${properties.timeseries[0].data.next_1_hours.summary.symbol_code}.png`) .addFields(