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