Skip to content

Commit

Permalink
Comando !gpt foi alterado para !ia
Browse files Browse the repository at this point in the history
Não necessáriamente a IA utilizada é o Chat-GPT então achei melhor mudar para um nome mais generico.
  • Loading branch information
victorsouzaleal committed Oct 30, 2024
1 parent 27b800d commit 359cff3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions bot/comandos/comandos.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ export function comandosInfo(botInfo){
"{p1}\n"
}
},
gpt : {
ia : {
descricao: '',
guia: `Ex: *${prefixo}gpt* texto - Recebe uma resposta do CHAT GPT de acordo com o texto.\n`,
guia: `Ex: *${prefixo}ia* texto - Recebe uma resposta de IA de acordo com o texto.\n`,
msgs: {
resposta: "🤖 Chat GPT v3 :\n\n"+
resposta: "🤖 Resposta da IA :\n\n"+
"{p1}"
}
},
Expand Down
4 changes: 2 additions & 2 deletions bot/comandos/utilidades.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,12 @@ export const utilidades = async(c, mensagemBaileys, botInfo) => {
}
break

case "gpt":
case "ia":
try{
if(!args.length) return await socket.responderTexto(c, id_chat, erroComandoMsg(comando, botInfo), mensagem)
let usuarioTexto = texto_recebido
let {resultado: resultadoTexto} = await api.IA.obterRespostaIA(usuarioTexto, remetente)
await socket.responderTexto(c, id_chat, criarTexto(comandos_info.utilidades.gpt.msgs.resposta, resultadoTexto), mensagem)
await socket.responderTexto(c, id_chat, criarTexto(comandos_info.utilidades.ia.msgs.resposta, resultadoTexto), mensagem)
} catch(err){
if(!err.erro) throw err
await socket.responderTexto(c, id_chat, criarTexto(comandos_info.outros.erro_api, comando, err.erro) , mensagem)
Expand Down
2 changes: 1 addition & 1 deletion bot/lib/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const menuUtilidades = (botInfo)=>{
|
|--〖🔎 *CONSULTAS/TEXTO* 〗
|
|- *${prefixo}gpt* frase - Recebe uma resposta da IA CHATGPT.
|- *${prefixo}ia* frase - Recebe uma resposta da IA.
|- *${prefixo}brasileirao* - Exibe a tabela e rodada atual do Brasileirão.
|- *${prefixo}animes* - Exibe os ultimos lançamentos de animes.
|- *${prefixo}mangas* - Exibe os ultimos lançamentos de mangás.
Expand Down

0 comments on commit 359cff3

Please sign in to comment.