Refactor plugins
This commit is contained in:
parent
bdb4a4f7a2
commit
5a1a207d0a
17 changed files with 16 additions and 16 deletions
|
@ -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') {
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue