Add BOT_VERSION to globals for .info bot.
This commit is contained in:
parent
52c1420508
commit
8ffbc367b1
|
@ -64,7 +64,7 @@ export default new NamedCommand({
|
||||||
`**❯ Channels:** ${client.channels.cache.size.toLocaleString()}`,
|
`**❯ Channels:** ${client.channels.cache.size.toLocaleString()}`,
|
||||||
`**❯ Creation Date:** ${utc(client.user?.createdTimestamp).format("Do MMMM YYYY HH:mm:ss")}`,
|
`**❯ Creation Date:** ${utc(client.user?.createdTimestamp).format("Do MMMM YYYY HH:mm:ss")}`,
|
||||||
`**❯ Node.JS:** ${process.version}`,
|
`**❯ Node.JS:** ${process.version}`,
|
||||||
`**❯ Version:** v${process.env.npm_package_version}`,
|
`**❯ Version:** v${BOT_VERSION}`,
|
||||||
`**❯ Discord.JS:** v${djsversion}`,
|
`**❯ Discord.JS:** v${djsversion}`,
|
||||||
"\u200b"
|
"\u200b"
|
||||||
])
|
])
|
||||||
|
|
|
@ -3,6 +3,7 @@ import chalk from "chalk";
|
||||||
declare global {
|
declare global {
|
||||||
var IS_DEV_MODE: boolean;
|
var IS_DEV_MODE: boolean;
|
||||||
var PERMISSIONS: typeof PermissionsEnum;
|
var PERMISSIONS: typeof PermissionsEnum;
|
||||||
|
var BOT_VERSION: string;
|
||||||
|
|
||||||
interface Console {
|
interface Console {
|
||||||
ready: (...data: any[]) => void;
|
ready: (...data: any[]) => void;
|
||||||
|
@ -21,6 +22,7 @@ enum PermissionsEnum {
|
||||||
|
|
||||||
global.IS_DEV_MODE = process.argv[2] === "dev";
|
global.IS_DEV_MODE = process.argv[2] === "dev";
|
||||||
global.PERMISSIONS = PermissionsEnum;
|
global.PERMISSIONS = PermissionsEnum;
|
||||||
|
global.BOT_VERSION = "3.2.3";
|
||||||
|
|
||||||
const oldConsole = console;
|
const oldConsole = console;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue