Update src/inc/trigger/wttr.mjs
This commit is contained in:
parent
e599b78ab8
commit
1897e3c1b5
@ -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`;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user