From 2f6512631938097962f8f87dd1590915eb5ac6f5 Mon Sep 17 00:00:00 2001 From: Lucas Gabriel <90426410+lucmsilva651@users.noreply.github.com> Date: Sun, 2 Jun 2024 14:55:44 +0000 Subject: [PATCH] Reformulation of bot structure --- src/blocklist.js => blocklist.js | 2 +- {src/commands => commands}/bam.js | 0 {src/commands => commands}/chatinfo.js | 0 {src/commands => commands}/customize.js | 0 {src/commands => commands}/furry.js | 0 {src/commands => commands}/gay.js | 0 {src/commands => commands}/help.js | 0 {src/commands => commands}/privacy.js | 0 {src/commands => commands}/random.js | 0 {src/commands => commands}/start.js | 0 {src/commands => commands}/stats.js | 0 {src/commands => commands}/whois.js | 0 src/logger.js => logger.js | 0 src/main.js => main.js | 0 package.json | 2 +- 15 files changed, 2 insertions(+), 2 deletions(-) rename src/blocklist.js => blocklist.js (90%) rename {src/commands => commands}/bam.js (100%) rename {src/commands => commands}/chatinfo.js (100%) rename {src/commands => commands}/customize.js (100%) rename {src/commands => commands}/furry.js (100%) rename {src/commands => commands}/gay.js (100%) rename {src/commands => commands}/help.js (100%) rename {src/commands => commands}/privacy.js (100%) rename {src/commands => commands}/random.js (100%) rename {src/commands => commands}/start.js (100%) rename {src/commands => commands}/stats.js (100%) rename {src/commands => commands}/whois.js (100%) rename src/logger.js => logger.js (100%) rename src/main.js => main.js (100%) diff --git a/src/blocklist.js b/blocklist.js similarity index 90% rename from src/blocklist.js rename to blocklist.js index 6786b1d..057eed1 100644 --- a/src/blocklist.js +++ b/blocklist.js @@ -1,7 +1,7 @@ const fs = require('fs'); const path = require('path'); -const blocklistPath = path.join(__dirname, '../blocklist.txt'); +const blocklistPath = path.join(__dirname, 'blocklist.txt'); let blocklist = []; diff --git a/src/commands/bam.js b/commands/bam.js similarity index 100% rename from src/commands/bam.js rename to commands/bam.js diff --git a/src/commands/chatinfo.js b/commands/chatinfo.js similarity index 100% rename from src/commands/chatinfo.js rename to commands/chatinfo.js diff --git a/src/commands/customize.js b/commands/customize.js similarity index 100% rename from src/commands/customize.js rename to commands/customize.js diff --git a/src/commands/furry.js b/commands/furry.js similarity index 100% rename from src/commands/furry.js rename to commands/furry.js diff --git a/src/commands/gay.js b/commands/gay.js similarity index 100% rename from src/commands/gay.js rename to commands/gay.js diff --git a/src/commands/help.js b/commands/help.js similarity index 100% rename from src/commands/help.js rename to commands/help.js diff --git a/src/commands/privacy.js b/commands/privacy.js similarity index 100% rename from src/commands/privacy.js rename to commands/privacy.js diff --git a/src/commands/random.js b/commands/random.js similarity index 100% rename from src/commands/random.js rename to commands/random.js diff --git a/src/commands/start.js b/commands/start.js similarity index 100% rename from src/commands/start.js rename to commands/start.js diff --git a/src/commands/stats.js b/commands/stats.js similarity index 100% rename from src/commands/stats.js rename to commands/stats.js diff --git a/src/commands/whois.js b/commands/whois.js similarity index 100% rename from src/commands/whois.js rename to commands/whois.js diff --git a/src/logger.js b/logger.js similarity index 100% rename from src/logger.js rename to logger.js diff --git a/src/main.js b/main.js similarity index 100% rename from src/main.js rename to main.js diff --git a/package.json b/package.json index cb8377c..6f18e0d 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "src/main.js", "scripts": { "test": "echo \"WARN: no test specified\" && exit 1", - "start": "node --env-file=config.env src/main.js" + "start": "node --env-file=config.env main.js" }, "repository": { "type": "git",