Compare commits
2 changed files with 2 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ module.exports = {
|
||||||
name: 'setpresence',
|
name: 'setpresence',
|
||||||
description: 'Set the presence for the bot',
|
description: 'Set the presence for the bot',
|
||||||
moreHelp: ["Presence types you can use:"
|
moreHelp: ["Presence types you can use:"
|
||||||
,"PLAY, LISTEN, WATCH, CUSTOM, COMPETING"
|
,"PLAY, LISTEN, WATCH"
|
||||||
,"Presence type have to be the first argument"
|
,"Presence type have to be the first argument"
|
||||||
,"Example: `<prefix>setpresence watch ${guilds} servers`",
|
,"Example: `<prefix>setpresence watch ${guilds} servers`",
|
||||||
,"Updates once a minute if custom variables are used."
|
,"Updates once a minute if custom variables are used."
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ module.exports = async function (location) {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
timeout: 5000
|
timeout: 5000
|
||||||
}
|
}
|
||||||
|
const url = `https://wttr.in/${location}?format=4&M` // 4 = one line, M = metric wind speed
|
||||||
let success = false;
|
let success = false;
|
||||||
let weather = await new Promise((resolve, reject) => {
|
let weather = await new Promise((resolve, reject) => {
|
||||||
https.get(options, (res) => {
|
https.get(options, (res) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue