mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-03-10 12:49:57 +00:00
Some small changes based on #6
This commit is contained in:
parent
fd3196a34f
commit
4771ca669e
@ -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) => {
|
||||
|
@ -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}`"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user