From e06477bb2c5b5ed8e7518ff24150a5d5f38c60aa Mon Sep 17 00:00:00 2001 From: Hirzi <64255651+HirziDevs@users.noreply.github.com> Date: Thu, 15 Jul 2021 18:35:26 +0700 Subject: [PATCH] v1.3.0 --- index.js | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/index.js b/index.js index 8f5e89d..1decdb6 100644 --- a/index.js +++ b/index.js @@ -1,26 +1,29 @@ const { Client, Collection, MessageEmbed } = require('discord.js') const fs = require('fs') const client = new Client() -const yaml = require("js-yaml") +const yaml = require('js-yaml') const config = yaml.load(fs.readFileSync('./config.yml', 'utf8')) client.config = config let nodelist = [ { - id: "Server ID", - name: "Example Server 1", - nameid: "Node1" + id: 'Server ID', + name: 'Example Server 1', + nameid: 'Node1', + nodeid: '1' }, { - id: "Server ID", - name: "Example Server 2", - nameid: "Node2" + id: 'Server ID', + name: 'Example Server 2', + nameid: 'Node2', + nodeid: '2' }, - //Add more code like bellow to the nodeslist array after comma and before "]" if you want to add more nodes + //Add more code like bellow to the nodeslist array after comma and before ']' if you want to add more nodes //{ - // id: "Server ID", - // name: "Example Server 3", - // nameid: "Node3" + // id: 'Server ID', + // name: 'Example Server 3', + // nameid: 'Node3', + // nodeid: '1' //}, ] client.nodelist = nodelist @@ -34,5 +37,5 @@ fs.readdir('./events/', (err, files) => { }) }) -if (config.token === "BOT TOKEN") console.log(chalk.blue("[PteroStats Checker] ") + chalk.red("Invalid Token, Check ") + chalk.green("config.json") + chalk.red(" file to change token")) +if (config.token === 'BOT TOKEN') console.log(chalk.blue('[PteroStats Checker] ') + chalk.red('Invalid Token, Check ') + chalk.green('config.json') + chalk.red(' file to change token')) client.login(config.token)