Skip to content

Commit

Permalink
corrigido versão exibida no pm2
Browse files Browse the repository at this point in the history
  • Loading branch information
victorsouzaleal committed Mar 20, 2021
1 parent 9db0842 commit 175d0a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion comandos/utilidades.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const { decryptMedia } = require('@open-wa/wa-decrypt')
const fs = require('fs-extra')
const menu = require('../lib/menu')
const msgs_texto = require('../lib/msgs')
const { version } = require('../package.json');
const {criarTexto, erroComandoMsg, consoleErro, obterNomeAleatorio, removerNegritoComando} = require("../lib/util")
const path = require('path')
const db = require('../lib/database')
Expand Down Expand Up @@ -30,7 +31,7 @@ module.exports = utilidades = async(client,message) => {
case "!info":
const botFotoURL = await client.getProfilePicFromServer(botNumber+'@c.us')
var infoBot = JSON.parse(fs.readFileSync(path.resolve("database/json/bot.json")))
var resposta = criarTexto(msgs_texto.utilidades.info.resposta,infoBot.criador,infoBot.criado_em,infoBot.nome,infoBot.iniciado,infoBot.cmds_executados,ownerNumber,process.env.npm_package_version)
var resposta = criarTexto(msgs_texto.utilidades.info.resposta,infoBot.criador,infoBot.criado_em,infoBot.nome,infoBot.iniciado,infoBot.cmds_executados,ownerNumber, version)
if(botFotoURL != undefined){
client.sendFileFromUrl(from, botFotoURL, "botfoto.jpg", resposta, id)
} else {
Expand Down

0 comments on commit 175d0a2

Please sign in to comment.