mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-03-10 12:49:57 +00:00
Moved language check to plugins folder
This commit is contained in:
parent
b1e1394071
commit
e2e5eb6ca3
@ -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);
|
||||||
|
@ -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);
|
||||||
|
@ -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) => {
|
||||||
|
@ -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) => {
|
||||||
|
@ -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);
|
||||||
|
@ -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) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user