2019-09-13 20:02:41 +00:00
const client = require ( "../utils/client.js" ) ;
2019-12-09 20:52:33 +00:00
const { version } = require ( "../package.json" ) ;
2019-09-13 20:02:41 +00:00
2020-04-12 19:51:48 +00:00
exports . run = async ( ) => {
2019-12-09 20:52:33 +00:00
const dev = client . users . get ( process . env . OWNER ) ;
const artist = client . users . get ( "401980971517214723" ) ;
2019-09-13 20:02:41 +00:00
const infoEmbed = {
"embed" : {
2019-12-09 20:52:33 +00:00
"description" : process . env . NODE _ENV === "development" ? "**You are currently using esmBot Dev! Things may change at any time without warning and there will be bugs. Many bugs.**" : "" ,
2019-09-13 20:02:41 +00:00
"color" : 16711680 ,
"author" : {
"name" : "esmBot Info/Credits" ,
"icon_url" : client . user . avatarURL
} ,
"fields" : [ {
2019-12-09 20:52:33 +00:00
"name" : "ℹ ️ Version:" ,
"value" : ` v ${ version } ${ process . env . NODE _ENV === "development" ? "-dev" : "" } `
} ,
{
2019-09-13 20:02:41 +00:00
"name" : "📝 Credits:" ,
"value" : ` Bot by ** ${ dev . username } # ${ dev . discriminator } ** \n Icon by ** ${ artist . username } # ${ artist . discriminator } ** `
} ,
{
"name" : "👪 Total Users:" ,
"value" : client . users . size
} ,
{
"name" : "💬 Total Servers:" ,
"value" : client . guilds . size
} ,
{
"name" : "✅ Official Server:" ,
"value" : "[Click here!](https://discord.gg/vfFM7YT)"
} ,
{
"name" : "💻 Source Code:" ,
2020-09-01 22:10:19 +00:00
"value" : "[Click here!](https://github.com/esmBot/esmBot)"
2019-12-06 18:47:40 +00:00
} ,
{
"name" : "<:twitter:652550515372064768> Twitter:" ,
"value" : "[Click here!](https://twitter.com/esmBot_)"
2019-09-13 20:02:41 +00:00
}
]
}
} ;
2020-04-12 19:51:48 +00:00
return infoEmbed ;
2019-09-13 20:02:41 +00:00
} ;
exports . aliases = [ "botinfo" , "credits" ] ;
2019-12-02 20:47:22 +00:00
exports . category = 1 ;
exports . help = "Gets some info/credits about me" ;