#i have a problem with db

23 messages · Page 1 of 1 (latest)

waxen isle
#

Only the sub related code should be in the interval

#

Otherwise, it will always set it back to the initial value

#

Yes

#

That code only substracts and set it. You never showed me how you get the data back

#

Oh so that console gives you this

#

Which quick.db version are you on?

#

Mmm, I will have to look into this. It's not really an issue but it could be nicer.

For the time being. You will have to set gtimes to be an object

waxen isle
#

Sorry, I am in class at the same time. db.set("gtimes", {});

#

You place it before you set ctimes into it

#

I cab affirm you it should work. If you need I need to see what you did

#

You set it after

#

You need it before you set ctimes

#

No worries

#

Oh well that makes more sense on why it was an array

#

You want it to be an array but you are also using it as an object

#

Which is just impossible

#

It shouldn't delete it when the bot restart unless you make it delete it

#

(I will be driving so I won't be able to answer)

waxen isle
#

I was driving so I couldn't answer directly.
First of that issue is not something we will resolve in 5 min because I need more context on what you are trying to do.
Is your main language French by any chances?

#

Ah I see, I was asking since I also speak French so somtimes it easier.
But I would need more context. Like where do you save those giveaways? Because to me, it looks like gtimes was the array where you saved all giveaways. If that is correct then you cannot use gtimes to save the time of the giveaway as well

#

Yes for sure

waxen isle
#

Well, I would first need the answers to the questions above. I will reformulate them here.
Is gtimes where you saved all ids for the giveaway (not talking about the current code)?

#

@cedar nova making sure you see the message