ABOUT ME: This question is aimed at using for a Discord bot using Discord.js I'm used to doing coding in older coding languages like C++, C#, Batch, and Game Maker Studio, but I'm still new to Discord.js
THE INTENT: I want to store some basic variables. Such as "Server Rupees" which is shared by everyone. And maybe a couple others. Nothing individual. Not a database. Not an array.
THE QUESTION: I've heard this can be done with a json file. How do I save one variable to a place I can get it back when the bot goes online again? And once I have it saved. How do I get that variable back?
WHAT I KNOW: Not a lot for Discord.js . My bot has about 20 different commands, like adding roles, recognizing a swear and deleting that message, kick/ban a user, bulk delete messages, etc.
See Question&Answers more detail:os