Skip to content

Commit ddc410b

Browse files
author
damian
committedMay 3, 2020
SuperCoderDamian
1 parent ad46618 commit ddc410b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎commands/online.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
module.exports = {
22
name: 'online',
33
description: 'Returns the number of players who are online on the Hypixel Network.',
4-
execute(message, args) {
4+
execute(client, message, args) {
55
const fetch = require('node-fetch');
66
const { hypixel } = require('../config.json');
77

88
fetch(`https://api.hypixel.net/playerCount?key=${hypixel}`)
99
.then(result => result.json())
1010
.then(({ playerCount }) => {
11-
message.channel.send(`There are **${ playerCount }** on the Hypixel Network.`);
11+
message.channel.send(`There are **${playerCount}** on the Hypixel Network.`);
1212

1313
});
1414
},

0 commit comments

Comments
 (0)
Please sign in to comment.