Removed sendOnline static method from Server class
This commit is contained in:
parent
c227097f37
commit
139e8dcfca
|
@ -54,20 +54,7 @@ class Server {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static sendOnline(status, channel) {
|
|
||||||
let playerCount = 0;
|
|
||||||
let embed = new Discord.MessageEmbed()
|
|
||||||
.setThumbnail("https://www.circlecraft.info/images/circlecraft_discord.png")
|
|
||||||
.setColor(0x44ff44);
|
|
||||||
status.forEach(function (s) {
|
|
||||||
if ( !s.tested ) return;
|
|
||||||
if ( s.players.length > 0 ) embed.addField("**" + s.name + "**:", s.players.join(', '), false);
|
|
||||||
});
|
|
||||||
embed.setTitle("Players Currently Online: " + playerCount);
|
|
||||||
channel.send(embed);
|
|
||||||
}
|
|
||||||
|
|
||||||
sendDetails(channel, hostStatus, serverStatus, serverTPS, queryStatus = {}) {
|
sendDetails(channel, hostStatus, serverStatus, serverTPS, queryStatus = {}) {
|
||||||
let embed = new Discord.MessageEmbed()
|
let embed = new Discord.MessageEmbed()
|
||||||
.setTitle(this.name + " *(" + this.slug + ")*")
|
.setTitle(this.name + " *(" + this.slug + ")*")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user