From 5a1a207d0ae7cd44de190f12666422fd52941fba Mon Sep 17 00:00:00 2001 From: Luquinhas Date: Sun, 20 Apr 2025 12:35:25 -0300 Subject: [PATCH] Refactor plugins --- src/bot.js | 2 +- src/commands/animal.js | 2 +- src/commands/codename.js | 2 +- src/commands/crew.js | 2 +- src/commands/fun.js | 2 +- src/commands/help.js | 2 +- src/commands/http.js | 2 +- src/commands/info.js | 2 +- src/commands/lastfm.js | 2 +- src/commands/main.js | 2 +- src/commands/modarchive.js | 2 +- src/commands/ponyapi.js | 2 +- src/commands/quotes.js | 2 +- src/commands/randompony.js | 2 +- src/commands/weather.js | 2 +- src/commands/youtube.js | 2 +- src/plugins/{ytdlp-wrapper.js => ytDlpWrapper.js} | 0 17 files changed, 16 insertions(+), 16 deletions(-) rename src/plugins/{ytdlp-wrapper.js => ytDlpWrapper.js} (100%) diff --git a/src/bot.js b/src/bot.js index e3cb19f..f053de7 100644 --- a/src/bot.js +++ b/src/bot.js @@ -3,7 +3,7 @@ const path = require('path'); const fs = require('fs'); const { isOnSpamWatch } = require('./spamwatch/spamwatch.js'); require('@dotenvx/dotenvx').config({ path: "config.env" }); -require('./plugins/ytdlp-wrapper.js'); +require('./plugins/ytDlpWrapper.js'); // Ensures bot token is set, and not default value if (!process.env.botToken || process.env.botToken === 'InsertYourBotTokenHere') { diff --git a/src/commands/animal.js b/src/commands/animal.js index 0d3884f..332e0e3 100644 --- a/src/commands/animal.js +++ b/src/commands/animal.js @@ -1,5 +1,5 @@ const Resources = require('../props/resources.json'); -const { getStrings } = require('../plugins/checklang.js'); +const { getStrings } = require('../plugins/checkLang.js'); const { isOnSpamWatch } = require('../spamwatch/spamwatch.js'); const spamwatchMiddleware = require('../spamwatch/Middleware.js')(isOnSpamWatch); const axios = require("axios"); diff --git a/src/commands/codename.js b/src/commands/codename.js index 390760a..138ae51 100644 --- a/src/commands/codename.js +++ b/src/commands/codename.js @@ -1,5 +1,5 @@ const Resources = require('../props/resources.json'); -const { getStrings } = require('../plugins/checklang.js'); +const { getStrings } = require('../plugins/checkLang.js'); const { isOnSpamWatch } = require('../spamwatch/spamwatch.js'); const spamwatchMiddleware = require('../spamwatch/Middleware.js')(isOnSpamWatch); const axios = require('axios'); diff --git a/src/commands/crew.js b/src/commands/crew.js index f754843..e2282ea 100644 --- a/src/commands/crew.js +++ b/src/commands/crew.js @@ -1,4 +1,4 @@ -const { getStrings } = require('../plugins/checklang.js'); +const { getStrings } = require('../plugins/checkLang.js'); const { isOnSpamWatch } = require('../spamwatch/spamwatch.js'); const spamwatchMiddleware = require('../spamwatch/Middleware.js')(isOnSpamWatch); const os = require('os'); diff --git a/src/commands/fun.js b/src/commands/fun.js index b80696d..0c64bbe 100644 --- a/src/commands/fun.js +++ b/src/commands/fun.js @@ -1,5 +1,5 @@ const Resources = require('../props/resources.json'); -const { getStrings } = require('../plugins/checklang.js'); +const { getStrings } = require('../plugins/checkLang.js'); const { isOnSpamWatch } = require('../spamwatch/spamwatch.js'); const spamwatchMiddleware = require('../spamwatch/Middleware.js')(isOnSpamWatch); diff --git a/src/commands/help.js b/src/commands/help.js index 3d76629..b4cc44b 100644 --- a/src/commands/help.js +++ b/src/commands/help.js @@ -1,4 +1,4 @@ -const { getStrings } = require('../plugins/checklang.js'); +const { getStrings } = require('../plugins/checkLang.js'); const { isOnSpamWatch } = require('../spamwatch/spamwatch.js'); const spamwatchMiddleware = require('../spamwatch/Middleware.js')(isOnSpamWatch); diff --git a/src/commands/http.js b/src/commands/http.js index 1ee383c..1382ad6 100644 --- a/src/commands/http.js +++ b/src/commands/http.js @@ -1,5 +1,5 @@ const Resources = require('../props/resources.json'); -const { getStrings } = require('../plugins/checklang.js'); +const { getStrings } = require('../plugins/checkLang.js'); const { isOnSpamWatch } = require('../spamwatch/spamwatch.js'); const spamwatchMiddleware = require('../spamwatch/Middleware.js')(isOnSpamWatch); const axios = require('axios'); diff --git a/src/commands/info.js b/src/commands/info.js index a35ad40..eed4874 100644 --- a/src/commands/info.js +++ b/src/commands/info.js @@ -1,4 +1,4 @@ -const { getStrings } = require('../plugins/checklang.js'); +const { getStrings } = require('../plugins/checkLang.js'); const { isOnSpamWatch } = require('../spamwatch/spamwatch.js'); const spamwatchMiddleware = require('../spamwatch/Middleware.js')(isOnSpamWatch); diff --git a/src/commands/lastfm.js b/src/commands/lastfm.js index ec6d126..1b1976f 100644 --- a/src/commands/lastfm.js +++ b/src/commands/lastfm.js @@ -1,7 +1,7 @@ const Resources = require('../props/resources.json'); const fs = require('fs'); const axios = require('axios'); -const { getStrings } = require('../plugins/checklang.js'); +const { getStrings } = require('../plugins/checkLang.js'); const { isOnSpamWatch } = require('../spamwatch/spamwatch.js'); const spamwatchMiddleware = require('../spamwatch/Middleware.js')(isOnSpamWatch); diff --git a/src/commands/main.js b/src/commands/main.js index 6f36d64..975762d 100644 --- a/src/commands/main.js +++ b/src/commands/main.js @@ -1,4 +1,4 @@ -const { getStrings } = require('../plugins/checklang.js'); +const { getStrings } = require('../plugins/checkLang.js'); const { isOnSpamWatch } = require('../spamwatch/spamwatch.js'); const spamwatchMiddleware = require('../spamwatch/Middleware.js')(isOnSpamWatch); diff --git a/src/commands/modarchive.js b/src/commands/modarchive.js index 35f2d7d..4e89370 100644 --- a/src/commands/modarchive.js +++ b/src/commands/modarchive.js @@ -2,7 +2,7 @@ const Resources = require('../props/resources.json'); const axios = require('axios'); const fs = require('fs'); const path = require('path'); -const { getStrings } = require('../plugins/checklang.js'); +const { getStrings } = require('../plugins/checkLang.js'); const { isOnSpamWatch } = require('../spamwatch/spamwatch.js'); const spamwatchMiddleware = require('../spamwatch/Middleware.js')(isOnSpamWatch); diff --git a/src/commands/ponyapi.js b/src/commands/ponyapi.js index 9e50908..e5fbf94 100644 --- a/src/commands/ponyapi.js +++ b/src/commands/ponyapi.js @@ -1,5 +1,5 @@ const Resources = require('../props/resources.json'); -const { getStrings } = require('../plugins/checklang.js'); +const { getStrings } = require('../plugins/checkLang.js'); const { isOnSpamWatch } = require('../spamwatch/spamwatch.js'); const spamwatchMiddleware = require('../spamwatch/Middleware.js')(isOnSpamWatch); const axios = require("axios"); diff --git a/src/commands/quotes.js b/src/commands/quotes.js index 859af57..ff31469 100644 --- a/src/commands/quotes.js +++ b/src/commands/quotes.js @@ -1,5 +1,5 @@ // const Resources = require('../props/resources.json'); -// const { getStrings } = require('../plugins/checklang.js'); +// const { getStrings } = require('../plugins/checkLang.js'); // const { isOnSpamWatch } = require('../spamwatch/spamwatch.js'); // const spamwatchMiddleware = require('../spamwatch/Middleware.js')(isOnSpamWatch); // const escape = require('markdown-escape'); diff --git a/src/commands/randompony.js b/src/commands/randompony.js index b621485..1be1e73 100644 --- a/src/commands/randompony.js +++ b/src/commands/randompony.js @@ -1,5 +1,5 @@ const Resources = require('../props/resources.json'); -const { getStrings } = require('../plugins/checklang.js'); +const { getStrings } = require('../plugins/checkLang.js'); const { isOnSpamWatch } = require('../spamwatch/spamwatch.js'); const spamwatchMiddleware = require('../spamwatch/Middleware.js')(isOnSpamWatch); const axios = require("axios"); diff --git a/src/commands/weather.js b/src/commands/weather.js index caf420b..be1ebe9 100644 --- a/src/commands/weather.js +++ b/src/commands/weather.js @@ -4,7 +4,7 @@ const Resources = require('../props/resources.json'); const axios = require('axios'); -const { getStrings } = require('../plugins/checklang.js'); +const { getStrings } = require('../plugins/checkLang.js'); const { isOnSpamWatch } = require('../spamwatch/spamwatch.js'); const spamwatchMiddleware = require('../spamwatch/Middleware.js')(isOnSpamWatch); const { verifyInput } = require('../plugins/verifyInput.js'); diff --git a/src/commands/youtube.js b/src/commands/youtube.js index 35be412..d3fa755 100644 --- a/src/commands/youtube.js +++ b/src/commands/youtube.js @@ -1,4 +1,4 @@ -const { getStrings } = require('../plugins/checklang.js'); +const { getStrings } = require('../plugins/checkLang.js'); const { isOnSpamWatch } = require('../spamwatch/spamwatch.js'); const spamwatchMiddleware = require('../spamwatch/Middleware.js')(isOnSpamWatch); const { execFile } = require('child_process'); diff --git a/src/plugins/ytdlp-wrapper.js b/src/plugins/ytDlpWrapper.js similarity index 100% rename from src/plugins/ytdlp-wrapper.js rename to src/plugins/ytDlpWrapper.js