Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

251
Visualizações
How to create, read and edit persistent data for a Discord bot?

This might be answered somewhere else, and if it is, I'm sorry, but I'd love to read it. All of the tutorials I've found either don't make sense to me or don't cover every aspect of what I'm trying to do.

I'm trying to make a discord bot that can store a few separate bits of information about someone that they provide, and then repeat them back once a command is read. For example, a shopping list. This is the functionality I'm trying to achieve:

  • The bot can store strings in a number of slots, with a set of slots assigned to each user in a server.
  • The bot can access what is in these slots to report to the user when the right command is typed.
  • The bot can write over a slot with new data if a user tells it to.

I'm not too worried about scalability and data cost - the bot's going to be servicing about a half dozen users at most, and I'll be running it from my own computer with all of this data locally available.

What I'm most confused by is editability (other answers to this question use something along the lines of fs.writeFile() which from my understanding won't work for this project) and persistence (since this is locally hosted, the bot will go offline if I have to update or shut down my PC. I don't want the data it's managing to be lost in this case).

Is this feasible? Sorry if this isn't the right way/place to ask, if there's a guide out there for this sort of stuff I'd be happy to read it.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

As a few people in the comments (Shockch4rge & GodderE2D) have already mentioned, hosted storage solutions such as Firebase or Supabase would work well for this.

Also, I recommend using something like MongoDB Atlas as it's relatively simple, has easy to use JS libraries (mongoose) and it's free under 500MB.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda