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

122
Vistas
Read undifined variable out of json file

i am right now trying to program a Discord bot currencysytem that is saved in a .json file. How its saved looks like this:

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

And i try to get the data out of it looks like this:

const currency = require('../currency.json');
    let fs = require('fs')
    let an = message.author.id

    message.channel.send(currency.{an}); // !!here I need help!!

    
 

In the line where i wrote "// !!I need help here!! i want to use the variable "an" and the visuial studio code doesnt get it... Does anyone has a solution to my problem pls help me. Thx you <3

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