Add BOT_VERSION to globals for .info bot.

This commit is contained in:
Keanu Timmermans 2021-09-17 22:57:21 +02:00
parent 52c1420508
commit 8ffbc367b1
Signed by: keanucode
GPG Key ID: A7431C0D513CA93B
2 changed files with 3 additions and 1 deletions

View File

@ -64,7 +64,7 @@ export default new NamedCommand({
`** Channels:** ${client.channels.cache.size.toLocaleString()}`,
`** Creation Date:** ${utc(client.user?.createdTimestamp).format("Do MMMM YYYY HH:mm:ss")}`,
`** Node.JS:** ${process.version}`,
`** Version:** v${process.env.npm_package_version}`,
`** Version:** v${BOT_VERSION}`,
`** Discord.JS:** v${djsversion}`,
"\u200b"
])

View File

@ -3,6 +3,7 @@ import chalk from "chalk";
declare global {
var IS_DEV_MODE: boolean;
var PERMISSIONS: typeof PermissionsEnum;
var BOT_VERSION: string;
interface Console {
ready: (...data: any[]) => void;
@ -21,6 +22,7 @@ enum PermissionsEnum {
global.IS_DEV_MODE = process.argv[2] === "dev";
global.PERMISSIONS = PermissionsEnum;
global.BOT_VERSION = "3.2.3";
const oldConsole = console;