Some small changes based on #6

This commit is contained in:
Lucas Gabriel 2024-07-25 23:42:24 -03:00
parent fd3196a34f
commit 4771ca669e
No known key found for this signature in database
GPG Key ID: D9B075FC6DC93985
8 changed files with 31 additions and 32 deletions

View File

@ -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);

View File

@ -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);

View File

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

View File

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

View File

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

View File

@ -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) => {

View File

@ -17,4 +17,3 @@
"userInfo": "*Informações do usuário*\n\n*Seu nome é:* `{userName}`\n*Seu username é:* `{userHandle}`\n*Seu ID é:* `{userId}`\n*Você é um bot:* `{isBot}`\n*Seu idioma:* `{userLang}`\n*Você é um usuário premium:* `{userPremium}`",
"chatInfo": "*Informações do grupo*\n\n*Nome do chat:* `{chatName}`\n*ID do chat:* `{chatId}`\n*Identificador:* `{chatHandle}`\n*Tipo de chat* `{chatType}`\n*Número de membros:* `{chatMembersCount}`\n*É um fórum:* `{isForum}`"
}