Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

154
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!