mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-07 14:55:40 +02:00
All Shards Voice Connections Counter
This commit is contained in:
+46
-44
@@ -25,51 +25,53 @@ class InfoCommand extends commando.Command {
|
||||
let guilds = this.client.guilds.size;
|
||||
let users = this.client.users.size;
|
||||
this.client.shard.fetchClientValues('guilds.size').then(results => {
|
||||
const embed = new Discord.RichEmbed()
|
||||
.setTitle('Welcome to XiaoBot!')
|
||||
.setAuthor(this.client.user.username, this.client.user.avatarURL)
|
||||
.setColor(0x00AE86)
|
||||
.setDescription('XiaoBot is your personal companion for your Discord Server!')
|
||||
.setFooter('©2017 dragonfire535 | Created ' + moment.duration(this.client.user.createdTimestamp - Date.now()).format('y[ years], M[ months], w[ weeks, and ]d[ days]') + ' ago!')
|
||||
.setThumbnail(this.client.user.avatarURL)
|
||||
.setURL('http://dragonfire535.weebly.com/xiaobot.html')
|
||||
.addField('Commands',
|
||||
"There are a variety of commands XiaoBot can use! Use ';help' to view a list of all commands!")
|
||||
.addField('Servers',
|
||||
guilds + "/" + results.reduce((prev, val) => prev + val, 0), true)
|
||||
.addField('Shards',
|
||||
this.client.options.shardCount + " (This is Shard: " + this.client.shard.id + ")", true)
|
||||
.addField('Commands',
|
||||
config.commandcount, true)
|
||||
.addField('Owner',
|
||||
"dragonfire535#8081", true)
|
||||
.addField('Source Code',
|
||||
"[View Here](https://github.com/dragonfire535/xiaobot)", true)
|
||||
.addField('Memory Usage',
|
||||
`${Math.round(process.memoryUsage().heapUsed / 1024 / 1024)}MB`, true)
|
||||
.addField('Uptime',
|
||||
moment.duration(this.client.uptime).format('d[d]h[h]m[m]s[s]'), true)
|
||||
.addField('Node Version',
|
||||
process.version, true)
|
||||
.addField('Voice Connections',
|
||||
this.client.voiceConnections.size, true)
|
||||
.addField('Library',
|
||||
"[discord.js](https://discord.js.org/#/) / [commando](https://github.com/Gawdl3y/discord.js-commando)", true)
|
||||
.addField('Modules',
|
||||
"[cleverbot-node](https://github.com/fojas/cleverbot-node), [pirate-speak](https://github.com/mikewesthad/pirate-speak), [google-translate-api](https://github.com/matheuss/google-translate-api), [urban](https://github.com/mvrilo/urban), [zalgoize](https://github.com/clux/zalgolize), [hepburn](https://github.com/lovell/hepburn), [yahoo-weather](https://github.com/mamal72/node-yahoo-weather), [imdb-api](https://github.com/worr/node-imdb-api), [string-to-binary](https://www.npmjs.com/package/string-to-binary), [roman-numeral-converter-mmxvi](https://github.com/Cein-Markey/roman-numeral-conversion-library), [cowsay](https://github.com/piuccio/cowsay), [morse](https://github.com/ecto/morse)")
|
||||
.addField('Utility Modules',
|
||||
"[request](https://github.com/request/request), [request-promise](https://github.com/request/request-promise), [mathjs](http://mathjs.org/), [moment](http://momentjs.com), [moment-duration-format](https://github.com/jsmreese/moment-duration-format), [opusscript](https://github.com/abalabahaha/opusscript), [jimp](https://github.com/oliver-moran/jimp)")
|
||||
.addField('APIs',
|
||||
"[Cleverbot API](https://www.cleverbot.com/api/), [Wattpad API](https://developer.wattpad.com/docs/api), [Wordnik API](http://developer.wordnik.com/docs.html), [osu! API](https://osu.ppy.sh/p/api), [memegen.link](https://memegen.link/), [Yugioh Prices API](http://docs.yugiohprices.apiary.io/#), [YouTube Data API](https://developers.google.com/youtube/v3/), [Yoda Speak API](https://market.mashape.com/ismaelc/yoda-speak), [Discord Bots API](https://bots.discord.pw/api), [Today in History API](http://history.muffinlabs.com/)")
|
||||
.addField('Other Credit',
|
||||
"[Heroku](https://www.heroku.com/), [Cloud9](https://c9.io/), [heroku-buildpack-ffmpeg-latest](https://elements.heroku.com/buildpacks/jonathanong/heroku-buildpack-ffmpeg-latest)")
|
||||
.addField('My Server',
|
||||
"[Click Here to Join!](https://discord.gg/fqQF8mc)")
|
||||
.addField('Invite Link:',
|
||||
"[Click Here to Add Me to Your Server!](https://discordapp.com/oauth2/authorize?client_id=278305350804045834&scope=bot&permissions=1345846343)");
|
||||
message.channel.sendEmbed(embed).catch(console.error);
|
||||
this.client.shard.fetchClientValues('voiceConnections.size').then(vCConnections => {
|
||||
const embed = new Discord.RichEmbed()
|
||||
.setTitle('Welcome to XiaoBot!')
|
||||
.setAuthor(this.client.user.username, this.client.user.avatarURL)
|
||||
.setColor(0x00AE86)
|
||||
.setDescription('XiaoBot is your personal companion for your Discord Server!')
|
||||
.setFooter('©2017 dragonfire535 | Created ' + moment.duration(this.client.user.createdTimestamp - Date.now()).format('y[ years], M[ months], w[ weeks, and ]d[ days]') + ' ago!')
|
||||
.setThumbnail(this.client.user.avatarURL)
|
||||
.setURL('http://dragonfire535.weebly.com/xiaobot.html')
|
||||
.addField('Commands',
|
||||
"There are a variety of commands XiaoBot can use! Use ';help' to view a list of all commands!")
|
||||
.addField('Servers',
|
||||
guilds + "/" + results.reduce((prev, val) => prev + val, 0), true)
|
||||
.addField('Shards',
|
||||
this.client.options.shardCount + " (This is Shard: " + this.client.shard.id + ")", true)
|
||||
.addField('Commands',
|
||||
config.commandcount, true)
|
||||
.addField('Owner',
|
||||
"dragonfire535#8081", true)
|
||||
.addField('Source Code',
|
||||
"[View Here](https://github.com/dragonfire535/xiaobot)", true)
|
||||
.addField('Memory Usage',
|
||||
`${Math.round(process.memoryUsage().heapUsed / 1024 / 1024)}MB`, true)
|
||||
.addField('Uptime',
|
||||
moment.duration(this.client.uptime).format('d[d]h[h]m[m]s[s]'), true)
|
||||
.addField('Node Version',
|
||||
process.version, true)
|
||||
.addField('Voice Connections',
|
||||
this.client.voiceConnections.size + "/" + vCConnections.reduce((prev, val) => prev + val, 0), true)
|
||||
.addField('Library',
|
||||
"[discord.js](https://discord.js.org/#/) / [commando](https://github.com/Gawdl3y/discord.js-commando)", true)
|
||||
.addField('Modules',
|
||||
"[cleverbot-node](https://github.com/fojas/cleverbot-node), [pirate-speak](https://github.com/mikewesthad/pirate-speak), [google-translate-api](https://github.com/matheuss/google-translate-api), [urban](https://github.com/mvrilo/urban), [zalgoize](https://github.com/clux/zalgolize), [hepburn](https://github.com/lovell/hepburn), [yahoo-weather](https://github.com/mamal72/node-yahoo-weather), [imdb-api](https://github.com/worr/node-imdb-api), [string-to-binary](https://www.npmjs.com/package/string-to-binary), [roman-numeral-converter-mmxvi](https://github.com/Cein-Markey/roman-numeral-conversion-library), [cowsay](https://github.com/piuccio/cowsay), [morse](https://github.com/ecto/morse)")
|
||||
.addField('Utility Modules',
|
||||
"[request](https://github.com/request/request), [request-promise](https://github.com/request/request-promise), [mathjs](http://mathjs.org/), [moment](http://momentjs.com), [moment-duration-format](https://github.com/jsmreese/moment-duration-format), [opusscript](https://github.com/abalabahaha/opusscript), [jimp](https://github.com/oliver-moran/jimp)")
|
||||
.addField('APIs',
|
||||
"[Cleverbot API](https://www.cleverbot.com/api/), [Wattpad API](https://developer.wattpad.com/docs/api), [Wordnik API](http://developer.wordnik.com/docs.html), [osu! API](https://osu.ppy.sh/p/api), [memegen.link](https://memegen.link/), [Yugioh Prices API](http://docs.yugiohprices.apiary.io/#), [YouTube Data API](https://developers.google.com/youtube/v3/), [Yoda Speak API](https://market.mashape.com/ismaelc/yoda-speak), [Discord Bots API](https://bots.discord.pw/api), [Today in History API](http://history.muffinlabs.com/)")
|
||||
.addField('Other Credit',
|
||||
"[Heroku](https://www.heroku.com/), [Cloud9](https://c9.io/), [heroku-buildpack-ffmpeg-latest](https://elements.heroku.com/buildpacks/jonathanong/heroku-buildpack-ffmpeg-latest)")
|
||||
.addField('My Server',
|
||||
"[Click Here to Join!](https://discord.gg/fqQF8mc)")
|
||||
.addField('Invite Link:',
|
||||
"[Click Here to Add Me to Your Server!](https://discordapp.com/oauth2/authorize?client_id=278305350804045834&scope=bot&permissions=1345846343)");
|
||||
message.channel.sendEmbed(embed).catch(console.error);
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
module.exports = InfoCommand;
|
||||
Reference in New Issue
Block a user