Info Command Insanity

This commit is contained in:
dragonfire535
2017-03-09 01:06:43 -05:00
parent d4543d292a
commit 7b6b24a2fd
+35 -37
View File
@@ -32,43 +32,41 @@ class InfoCommand extends commando.Command {
}; };
let guilds = this.client.guilds.size; let guilds = this.client.guilds.size;
let users = this.client.users.size; let users = this.client.users.size;
const embed = new Discord.RichEmbed() this.client.shard.fetchClientValues('guilds.size').then(results => {
.setTitle('Welcome to XiaoBot!') const embed = new Discord.RichEmbed()
.setAuthor(this.client.user.username, this.client.user.avatarURL) .setTitle('Welcome to XiaoBot!')
.setColor(0x00AE86) .setAuthor(this.client.user.username, this.client.user.avatarURL)
.setDescription('XiaoBot is your personal companion for your Discord Server!') .setColor(0x00AE86)
.setFooter('©2017 dragonfire535', this.client.user.avatarURL) .setDescription('XiaoBot is your personal companion for your Discord Server!')
.setThumbnail(this.client.user.avatarURL) .setFooter('©2017 dragonfire535', this.client.user.avatarURL)
.setURL('http://dragonfire535.tk') .setThumbnail(this.client.user.avatarURL)
.addField('Commands', .setURL('http://dragonfire535.tk')
"There are a variety of commands XiaoBot can use! Use ';help' to view a list of all commands!") .addField('Commands',
.addField('Servers', "There are a variety of commands XiaoBot can use! Use ';help' to view a list of all commands!")
guilds, true) .addField('Servers',
.addField('Users', guilds + "/" + results, true)
users, true) .addField('Shards',
.addField('Shards', this.client.options.shardCount + " (This is Shard: " + this.client.shard.id + ")", true)
this.client.options.shardCount + " (This is Shard: " + this.client.shard.id + ")", true) .addField('Commands',
.addField('Commands', config.commandcount, true)
config.commandcount, true) .addField('Owner',
.addField('Owner', "dragonfire535#8081", true)
"dragonfire535#8081", true) .addField('Uptime',
.addField('Uptime', toHHMMSS(process.uptime()), true)
toHHMMSS(process.uptime()), true) .addField('Source Code',
.addField('Host', "[View Here](https://github.com/dragonfire535/xiaobot)", true)
"[Heroku](https://www.heroku.com/)", true) .addField('Lib',
.addField('Source Code', "[discord.js](https://discord.js.org/#/) (master)", true)
"[View Here](https://github.com/dragonfire535/xiaobot)", true) .addField('Modules',
.addField('Lib', "[Commando](https://github.com/Gawdl3y/discord.js-commando) (0.9.0), [cleverbot-node](https://github.com/fojas/cleverbot-node) (0.3.5), [pirate-speak](https://github.com/mikewesthad/pirate-speak) (1.0.1), [JIMP](https://github.com/oliver-moran/jimp) (0.2.27), [google-translate-api](https://github.com/matheuss/google-translate-api) (2.2.2), [urban](https://github.com/mvrilo/urban) (0.3.1), [zalgoize](https://github.com/clux/zalgolize) (1.2.4), [hepburn](https://github.com/lovell/hepburn) (1.0.0), [yahoo-weather](https://github.com/mamal72/node-yahoo-weather) (2.2.2), [imdb-api](https://github.com/worr/node-imdb-api) (2.2.1), [request-promise](https://github.com/request/request-promise) (4.1.1), [mathjs](http://mathjs.org/) (3.10.0)")
"[discord.js](https://discord.js.org/#/) (master)", true) .addField('Other Credit',
.addField('Modules', "[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/#)")
"[Commando](https://github.com/Gawdl3y/discord.js-commando) (0.9.0), [cleverbot-node](https://github.com/fojas/cleverbot-node) (0.3.5), [pirate-speak](https://github.com/mikewesthad/pirate-speak) (1.0.1), [JIMP](https://github.com/oliver-moran/jimp) (0.2.27), [google-translate-api](https://github.com/matheuss/google-translate-api) (2.2.2), [urban](https://github.com/mvrilo/urban) (0.3.1), [zalgoize](https://github.com/clux/zalgolize) (1.2.4), [hepburn](https://github.com/lovell/hepburn) (1.0.0), [yahoo-weather](https://github.com/mamal72/node-yahoo-weather) (2.2.2), [imdb-api](https://github.com/worr/node-imdb-api) (2.2.1), [request-promise](https://github.com/request/request-promise) (4.1.1), [mathjs](http://mathjs.org/) (3.10.0)") .addField('My Server',
.addField('Other Credit', "[Click Here to Join!](https://discord.gg/fqQF8mc)")
"[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/#)") .addField('Invite Link:',
.addField('My Server', "[Click Here to Add Me to Your Server!](https://discordapp.com/oauth2/authorize?client_id=278305350804045834&scope=bot&permissions=519238)");
"[Click Here to Join!](https://discord.gg/fqQF8mc)") message.channel.sendEmbed(embed).catch(console.error);
.addField('Invite Link:', });
"[Click Here to Add Me to Your Server!](https://discordapp.com/oauth2/authorize?client_id=278305350804045834&scope=bot&permissions=519238)");
message.channel.sendEmbed(embed).catch(console.error);
} }
} }