Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

161
Vistas
discord.js Automatic Discord log bot to show every change from a text in ftp which edits automatically when log changes?

I need a discord bot for can online multiplayer server. What I want to do is to send that change in report logs file which is present in FTP to the discord channel whenever there is a change in the server logs. Logfile is in the FTP server.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

// The log from your bot.
let log = "ZAK%156.203.237.174%Bilal%205.164.106.26%wallhack";

function formatResult(result) {
  let splitResult = result.split("%");
  return {
    "Reported by": splitResult[0],
    "Reported IP": splitResult[1],
    "Reported Player": splitResult[2],
    "Reported Player IP": splitResult[3],
    "Report": splitResult[4]
  }
}

console.log(formatResult(log));
/*
{
  "Reported by": "ZAK",
  "Reported IP": "156.203.237.174",
  "Reported Player": "Bilal",
  "Reported Player IP": "205.164.106.26",
  "Report": "wallhack"
}
*/

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda