Moved language check to plugins folder

This commit is contained in:
Lucas Gabriel 2024-07-25 23:57:38 -03:00
parent b1e1394071
commit e2e5eb6ca3
No known key found for this signature in database
GPG Key ID: D9B075FC6DC93985
7 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
const resources = require('../props/resources.json'); const resources = require('../props/resources.json');
const { getStrings } = require('./checklang.js'); const { getStrings } = require('../plugins/checklang.js');
function furryFunction(ctx) { function furryFunction(ctx) {
const Strings = getStrings(ctx.from.language_code); const Strings = getStrings(ctx.from.language_code);

View File

@ -1,6 +1,6 @@
const Config = require('../props/config.json'); const Config = require('../props/config.json');
const os = require('os'); const os = require('os');
const { getStrings } = require('./checklang.js'); const { getStrings } = require('../plugins/checklang.js');
function formatUptime(uptime) { function formatUptime(uptime) {
const hours = Math.floor(uptime / 3600); const hours = Math.floor(uptime / 3600);

View File

@ -1,4 +1,4 @@
const { getStrings } = require('./checklang.js'); const { getStrings } = require('../plugins/checklang.js');
const resources = require('../props/resources.json'); const resources = require('../props/resources.json');
module.exports = (bot) => { module.exports = (bot) => {

View File

@ -1,4 +1,4 @@
const { getStrings } = require('./checklang.js'); const { getStrings } = require('../plugins/checklang.js');
module.exports = (bot) => { module.exports = (bot) => {
bot.command('privacy', (ctx) => { bot.command('privacy', (ctx) => {

View File

@ -1,4 +1,4 @@
const { getStrings } = require('./checklang.js'); const { getStrings } = require('../plugins/checklang.js');
function getRandomInt(max) { function getRandomInt(max) {
return Math.floor(Math.random() * max); return Math.floor(Math.random() * max);

View File

@ -1,5 +1,5 @@
const resources = require('../props/resources.json'); const resources = require('../props/resources.json');
const { getStrings } = require('./checklang.js'); const { getStrings } = require('../plugins/checklang.js');
module.exports = (bot) => { module.exports = (bot) => {
bot.start((ctx) => { bot.start((ctx) => {