mrmBot-Matrix/commands/info.js

45 lines
1.4 KiB
JavaScript
Raw Normal View History

2019-09-13 20:02:41 +00:00
const client = require("../utils/client.js");
const { version } = require("../package.json");
2019-09-13 20:02:41 +00:00
exports.run = async () => {
2019-09-13 20:02:41 +00:00
const infoEmbed = {
"embed": {
"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": [{
"name": " Version:",
"value": `v${version}${process.env.NODE_ENV === "development" ? "-dev" : ""}`
},
{
2019-09-13 20:02:41 +00:00
"name": "📝 Credits:",
"value": "Bot by **[Essem](https://essem.space)**\nIcon by **[MintBorrow](https://mintborrow.newgrounds.com)**"
2019-09-13 20:02:41 +00:00
},
{
"name": "💬 Total Servers:",
"value": client.guilds.size
},
{
"name": "✅ Official Server:",
"value": "[Click here!](https://discord.gg/vfFM7YT)"
},
{
"name": "💻 Source Code:",
"value": "[Click here!](https://github.com/esmBot/esmBot)"
},
{
"name": "<:twitter:652550515372064768> Twitter:",
"value": "[Click here!](https://twitter.com/esmBot_)"
2019-09-13 20:02:41 +00:00
}
]
}
};
return infoEmbed;
2019-09-13 20:02:41 +00:00
};
exports.aliases = ["botinfo", "credits"];
exports.category = 1;
exports.help = "Gets some info/credits about me";