Some small changes based on #6
This commit is contained in:
parent
fd3196a34f
commit
4771ca669e
8 changed files with 31 additions and 32 deletions
|
@ -1,11 +1,11 @@
|
|||
function getStrings(languageCode) {
|
||||
if (languageCode === 'pt-br') {
|
||||
return require('../locales/portuguese.json');
|
||||
} else {
|
||||
return require('../locales/english.json');
|
||||
}
|
||||
if (languageCode === 'pt-br') {
|
||||
return require('../locales/portuguese.json');
|
||||
} else {
|
||||
return require('../locales/english.json');
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
getStrings
|
||||
};
|
||||
getStrings
|
||||
};
|
|
@ -1,5 +1,5 @@
|
|||
const resources = require('../props/resources.json');
|
||||
const { getStrings } = require('./checklang');
|
||||
const { getStrings } = require('./checklang.js');
|
||||
|
||||
function furryFunction(ctx) {
|
||||
const Strings = getStrings(ctx.from.language_code);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
const Config = require('../props/config.json');
|
||||
const os = require('os');
|
||||
const { getStrings } = require('./checklang');
|
||||
const { getStrings } = require('./checklang.js');
|
||||
|
||||
function formatUptime(uptime) {
|
||||
const hours = Math.floor(uptime / 3600);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const { getStrings } = require('./checklang');
|
||||
const { getStrings } = require('./checklang.js');
|
||||
const resources = require('../props/resources.json');
|
||||
|
||||
module.exports = (bot) => {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const { getStrings } = require('./checklang');
|
||||
const { getStrings } = require('./checklang.js');
|
||||
|
||||
module.exports = (bot) => {
|
||||
bot.command('privacy', (ctx) => {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const { getStrings } = require('./checklang');
|
||||
const { getStrings } = require('./checklang.js');
|
||||
|
||||
function getRandomInt(max) {
|
||||
return Math.floor(Math.random() * max);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const resources = require('../props/resources.json');
|
||||
const { getStrings } = require('./checklang');
|
||||
const { getStrings } = require('./checklang.js');
|
||||
|
||||
module.exports = (bot) => {
|
||||
bot.start((ctx) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue