From 0cb8ca7169a031b5e583826b873a4ce6f8acb612 Mon Sep 17 00:00:00 2001 From: ZabKoz Date: Sun, 20 Aug 2023 20:07:34 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8|=20Addition=20of=20bot=20version=20re?= =?UTF-8?q?ad=20from=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Zmiana wersji bota oraz dodanie w pliku "ready.js" odczytywanie wersji bota z pliku ''version.json" --- src/config/version.json | 2 +- src/events/client/ready.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config/version.json b/src/config/version.json index 6614cbd..4a1f271 100644 --- a/src/config/version.json +++ b/src/config/version.json @@ -1 +1 @@ -{"ver":"1.0.2"} \ No newline at end of file +{"ver":"1.0.3"} \ No newline at end of file diff --git a/src/events/client/ready.js b/src/events/client/ready.js index fc752de..c242d1a 100644 --- a/src/events/client/ready.js +++ b/src/events/client/ready.js @@ -7,13 +7,13 @@ module.exports = { name: "ready", once: true, author: 'ZabKoz', - version: '1.0.0', + version: '1.0.1', execute(client) { // Cleaning the console console.clear(); // Creating a banner with the bot's name - var banner = figlet.textSync('Discord BOT Vollie V1', { + var banner = figlet.textSync(`Discord BOT Vollie V${vers.ver}`, { font: 'Small', horizontalLayout: 'default', width: 1000,