sshChat-CLI/commands/stats.js
2023-01-11 15:48:57 -05:00

19 lines
463 B
JavaScript

// stats.js
const unirest = require("unirest");
async function getStats(key) {
let requestData = await unirest
.get('https://api.discord-linux.com/stats')
.headers({
'Accept': 'application/json', 'Content-Type': 'application/json',
'x-discord-linux-auth': key
})
return requestData.body
}
async function stats(key) {
const response = await getStats(key)
console.log(response)
}
module.exports = { stats, getStats }