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

119
Views
Leer variable no definida fuera del archivo json

En este momento estoy tratando de programar un sistema de moneda de bot de Discord que se guarda en un archivo .json. Cómo se guarda se ve así:

 "<userid>" : <currency>, "userid" : <currency>, ...

Y trato de obtener los datos que se ven así:

 const currency = require('../currency.json'); let fs = require('fs') let an = message.author.id message.channel.send(currency.{an}); // !!here I need help!!

En la línea donde escribí "// !!Necesito ayuda aquí!! Quiero usar la variable "an" y el código de visuial studio no lo entiende... ¿Alguien tiene una solución a mi problema? Por favor, ayúdame. Gracias. tu <3

about 4 years ago · Juan Pablo Isaza
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!