diff --git a/commands/fun.js b/commands/fun.js index 763821e..7591391 100644 --- a/commands/fun.js +++ b/commands/fun.js @@ -1,5 +1,5 @@ const resources = require('../props/resources.json'); -const { getStrings } = require('./checklang.js'); +const { getStrings } = require('../plugins/checklang.js'); function furryFunction(ctx) { const Strings = getStrings(ctx.from.language_code); diff --git a/commands/getinfo.js b/commands/getinfo.js index 61e1e37..37e5ddc 100644 --- a/commands/getinfo.js +++ b/commands/getinfo.js @@ -1,6 +1,6 @@ const Config = require('../props/config.json'); const os = require('os'); -const { getStrings } = require('./checklang.js'); +const { getStrings } = require('../plugins/checklang.js'); function formatUptime(uptime) { const hours = Math.floor(uptime / 3600); diff --git a/commands/help.js b/commands/help.js index f0d9aa9..88e1ebf 100644 --- a/commands/help.js +++ b/commands/help.js @@ -1,4 +1,4 @@ -const { getStrings } = require('./checklang.js'); +const { getStrings } = require('../plugins/checklang.js'); const resources = require('../props/resources.json'); module.exports = (bot) => { diff --git a/commands/privacy.js b/commands/privacy.js index faca1e6..da76ac4 100644 --- a/commands/privacy.js +++ b/commands/privacy.js @@ -1,4 +1,4 @@ -const { getStrings } = require('./checklang.js'); +const { getStrings } = require('../plugins/checklang.js'); module.exports = (bot) => { bot.command('privacy', (ctx) => { diff --git a/commands/random.js b/commands/random.js index 9cb8f93..543532e 100644 --- a/commands/random.js +++ b/commands/random.js @@ -1,4 +1,4 @@ -const { getStrings } = require('./checklang.js'); +const { getStrings } = require('../plugins/checklang.js'); function getRandomInt(max) { return Math.floor(Math.random() * max); diff --git a/commands/start.js b/commands/start.js index d8f110e..9fb0ed0 100644 --- a/commands/start.js +++ b/commands/start.js @@ -1,5 +1,5 @@ const resources = require('../props/resources.json'); -const { getStrings } = require('./checklang.js'); +const { getStrings } = require('../plugins/checklang.js'); module.exports = (bot) => { bot.start((ctx) => { diff --git a/commands/checklang.js b/plugins/checklang.js similarity index 100% rename from commands/checklang.js rename to plugins/checklang.js