From 8ffbc367b10eca9650c92595a9f467940cf51c8d Mon Sep 17 00:00:00 2001 From: Keanu Date: Fri, 17 Sep 2021 22:57:21 +0200 Subject: [PATCH] Add BOT_VERSION to globals for .info bot. --- src/commands/utility/info.ts | 2 +- src/modules/globals.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/utility/info.ts b/src/commands/utility/info.ts index 9a789f7..e5b00f6 100644 --- a/src/commands/utility/info.ts +++ b/src/commands/utility/info.ts @@ -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" ]) diff --git a/src/modules/globals.ts b/src/modules/globals.ts index 4f2e377..de015a6 100644 --- a/src/modules/globals.ts +++ b/src/modules/globals.ts @@ -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;