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,5 +1,5 @@
|
||||||
const resources = require('../props/resources.json');
|
const resources = require('../props/resources.json');
|
||||||
const { getStrings } = require('./checklang');
|
const { getStrings } = require('./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');
|
const { getStrings } = require('./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');
|
const { getStrings } = require('./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');
|
const { getStrings } = require('./checklang.js');
|
||||||
|
|
||||||
module.exports = (bot) => {
|
module.exports = (bot) => {
|
||||||
bot.command('privacy', (ctx) => {
|
bot.command('privacy', (ctx) => {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
const { getStrings } = require('./checklang');
|
const { getStrings } = require('./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');
|
const { getStrings } = require('./checklang.js');
|
||||||
|
|
||||||
module.exports = (bot) => {
|
module.exports = (bot) => {
|
||||||
bot.start((ctx) => {
|
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}`",
|
"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}`"
|
"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…
Add table
Add a link
Reference in a new issue