We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad46618 commit ddc410bCopy full SHA for ddc410b
commands/online.js
@@ -1,14 +1,14 @@
1
module.exports = {
2
name: 'online',
3
description: 'Returns the number of players who are online on the Hypixel Network.',
4
- execute(message, args) {
+ execute(client, message, args) {
5
const fetch = require('node-fetch');
6
const { hypixel } = require('../config.json');
7
8
fetch(`https://api.hypixel.net/playerCount?key=${hypixel}`)
9
.then(result => result.json())
10
.then(({ playerCount }) => {
11
- message.channel.send(`There are **${ playerCount }** on the Hypixel Network.`);
+ message.channel.send(`There are **${playerCount}** on the Hypixel Network.`);
12
13
});
14
},
0 commit comments