Compare commits
2 commits
f4470ac2e9
...
fb45f1fc5a
Author | SHA1 | Date | |
---|---|---|---|
fb45f1fc5a | |||
e31eb3f3e4 |
2 changed files with 1 additions and 2 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"
|
||||
,"PLAY, LISTEN, WATCH, CUSTOM, COMPETING"
|
||||
,"Presence type have to be the first argument"
|
||||
,"Example: `<prefix>setpresence watch ${guilds} servers`",
|
||||
,"Updates once a minute if custom variables are used."
|
||||
|
|
|
@ -8,7 +8,6 @@ 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