V
V
victorpzdnf2020-04-28 06:11:32
JavaScript
victorpzdnf, 2020-04-28 06:11:32

Discord.js, server question, how to do it?

I have my own bot. I have almost finished it, dofig systems. Rewriting is not an option, which means that moving from Discord.js to Discord.io is not an option!
The bot is already running.
But I don't like the inventory system: it's not convenient that all servers have the same inventory, all bans, mutes, etc., respectively. - on all servers. And because of this, you won’t be able to configure the server,
so help ...
So. I have a profile array variable: profile

let profile = require("./profile.json")
let uid = message.author.id
profile[uid] = {
server[SID]:{
money:5
}
}

Correct the code (I'm only a month in JS, this is not a master yet) and add plz so that each ID has an array of servers by their ID, and there is already "inventory" in it. Thank you in advance.
PS Difficult set because already fucked up for a long time I can not find the answer

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2020-04-28
@AleksRap

Correct the code (I'm only a month in JS, this is not a master yet) and add plz so that each ID has an array of servers by their ID, and it already has "inventory"

With such freelancing requests

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question