From 7103692052bcf2ea438db437cd5b20c99167bd74 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Wed, 19 Jul 2023 21:43:56 +0500 Subject: [PATCH] update config example --- base/JaBa.js | 21 ++++++++++----------- config.sample.js | 8 ++++---- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/base/JaBa.js b/base/JaBa.js index 0bb69bd9..38fe5d7d 100644 --- a/base/JaBa.js +++ b/base/JaBa.js @@ -71,7 +71,7 @@ class JaBa extends Client { } /** - * Login into bot account, connect to DB and update docs + * Login into account and connect to DB */ async init() { this.login(this.config.token); @@ -95,7 +95,7 @@ class JaBa extends Client { } /** - * Load commands from directory + * Loads commands from directory * @param {String} dir Directory where's all commands located * @returns */ @@ -155,7 +155,7 @@ class JaBa extends Client { } /** - * Load single command in directory + * Loads single command in directory * @param {String} dir Directory where command is * @param {String} file Filename of the command */ @@ -181,7 +181,7 @@ class JaBa extends Client { } /** - * Unload command from cache + * Unloads command from cache * @param {String} dir Directory of the command * @param {String} name Name of the command */ @@ -192,7 +192,7 @@ class JaBa extends Client { } /** - * Load events from directory + * Loads events from directory * @param {String} dir Directory where's all events located * @returns */ @@ -217,15 +217,14 @@ class JaBa extends Client { } /** - * Get default language - * @returns {String} Default bot's language + * @returns {String} Bot's default language */ get defaultLanguage() { return this.languages.find(language => language.default).name; } /** - * Translate from key to language + * Translates from a key to language * @param {String} key Key * @param {Array} args Arguments for translation * @param {String} locale Language @@ -238,7 +237,7 @@ class JaBa extends Client { } /** - * Find or create user in DB + * Finds or creates user in DB * @param {Array} param0 { id: User ID } * @returns {import("./User")} Mongoose model or JSON of this user */ @@ -263,7 +262,7 @@ class JaBa extends Client { } /** - * Find or create member in DB + * Finds or creates member in DB * @param {Array} param0 { id: Member ID } * @returns {import("./Member")} Mongoose model or JSON of this member */ @@ -294,7 +293,7 @@ class JaBa extends Client { } /** - * Find or create guild in DB + * Finds or creates guild in DB * @param {Array} param0 { id: Guild ID } * @returns {import("./Guild")} Mongoose model or JSON of this guild */ diff --git a/config.sample.js b/config.sample.js index 56e9aaed..100d63b6 100644 --- a/config.sample.js +++ b/config.sample.js @@ -9,16 +9,16 @@ module.exports = { support: { id: "XXXXXXXXXXX", // The ID of the support server logs: "XXXXXXXXXXX", // And the ID of the logs channel of your server (new servers for example) - invite: "", // Invite link to your support server + invite: "XXXXXXXXXXX", // Invite link to your support server }, /* Dashboard configuration */ dashboard: { enabled: true, // Whether the dashboard is enabled or not - maintanceKey: "", // Your maintance key + maintanceKey: "XXXXXXXXXXX", // Your maintance key port: 80, // Dashboard port domain: "http://localhost", // The base URL of the dashboard without / at the end - secret: "", // Your Discord Client's Secret - logs: "", // The channel ID for logs + secret: "XXXXXXXXXXX", // Your Discord Client's Secret + logs: "XXXXXXXXXXX", // The channel ID for logs }, mongoDB: "mongodb://localhost:27017/discordbot", // The URl of the mongodb database /* For the embeds (embeded messages) */