Compare commits

...

2 commits

Author SHA1 Message Date
fb45f1fc5a
setpresence: Add all presence types to moreHelp
Some checks failed
njsscan sarif / njsscan code scanning (push) Failing after 1s
discord bot tests / discord bot tests (push) Successful in 11s
2024-10-24 17:12:14 +02:00
e31eb3f3e4
Remove unused url variable
Some checks failed
njsscan sarif / njsscan code scanning (push) Failing after 1s
discord bot tests / discord bot tests (push) Successful in 11s
2024-10-24 02:19:29 +02:00
2 changed files with 1 additions and 2 deletions

View file

@ -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" ,"PLAY, LISTEN, WATCH, CUSTOM, COMPETING"
,"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."

View file

@ -8,7 +8,6 @@ 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) => {