Update src/inc/trigger/wttr.mjs

This commit is contained in:
Flummi 2019-01-07 13:25:00 +00:00
parent e599b78ab8
commit 1897e3c1b5

View File

@ -72,7 +72,7 @@ export default bot => {
usage: "[b].w[/b] [i]<location>[/i]"
},
f: e => {
const loc = e.message.trim().substring(9);
const loc = e.message.trim().substring(3);
const key = cfg.main.owm.val.key;
const api = `http://api.openweathermap.org/data/2.5/weather?q=${loc}&appid=${key}&units=metric&lang=de`;