wrzucamy śmietnik :DDDD
This commit is contained in:
parent
6d3524eed5
commit
cded4e036a
10 changed files with 2296 additions and 0 deletions
16
commands/dcstatus.js
Normal file
16
commands/dcstatus.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
module.exports = {
|
||||
data: {
|
||||
"name": 'dcstatus',
|
||||
"usage": '',
|
||||
"description": 'Check if Discord is working.'
|
||||
},
|
||||
async execute(event, bot) {
|
||||
const response = await fetch('https://discordstatus.com/api/v2/status.json');
|
||||
if (!response.ok) {
|
||||
event.reply("Failed to download status!")
|
||||
} else {
|
||||
const json = await response.json()
|
||||
event.reply(`${json.status.description}: ${json.page.url}`)
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue