From 24adb743febc913d4ded8599484a7df58583942d Mon Sep 17 00:00:00 2001 From: Felix Limbach Date: Thu, 7 Dec 2023 06:38:18 +0100 Subject: [PATCH] Update package.json and event files --- package.json | 2 +- src/events/client/ready/hotReloading.js | 4 ++-- src/events/client/ready/registerCommands.js | 1 + src/register.js | 5 ++++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index e3c8fc9..9045324 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ }, "name": "discord.js-template", "description": "A simple discord.js template", - "version": "1.0.0", + "version": "2.0.0", "main": "index.js", "scripts": { "start": "npm i && node src/bot.js", diff --git a/src/events/client/ready/hotReloading.js b/src/events/client/ready/hotReloading.js index 279efde..13522ec 100644 --- a/src/events/client/ready/hotReloading.js +++ b/src/events/client/ready/hotReloading.js @@ -5,10 +5,10 @@ const chokidar = require('chokidar') const { loadClientEvents, loadClientInteractions } = require('../../../register') /** - * @file Ready Event File. + * @file Hot Reloading of Interactions and Events * @since 1.0.0 + * @version 2.0.0 */ - module.exports = { name: 'ready', once: true, diff --git a/src/events/client/ready/registerCommands.js b/src/events/client/ready/registerCommands.js index 3a65cf4..15fc718 100644 --- a/src/events/client/ready/registerCommands.js +++ b/src/events/client/ready/registerCommands.js @@ -13,6 +13,7 @@ const _ = require('lodash') /** * @file Command registration * @since 1.0.0 + * @version 2.0.0 */ module.exports = { diff --git a/src/register.js b/src/register.js index 6a60784..19d4319 100644 --- a/src/register.js +++ b/src/register.js @@ -1,7 +1,10 @@ //! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! //! DO NOT TOUCH THIS CODE UNLESS YOU KNOW WHAT YOU ARE DOING //! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - +/** + * @file Responsible for registering events, commands, interactions etc. + * @version 2.0.0 +*/ const { Collection } = require('discord.js') const fs = require('fs') require('colors')