Ask coding questions

← Back to all posts
change prefix command with repl. it databasr
ChrystomThalapp (1)

how do i config my bot to use repl's database instead of jsons?

Answered by Coder100 (16982) [earned 5 cycles]
View Answer
Comments
hotnewtop
Coder100 (16982)

You can't just exactly start using it. You have to gradually change your dB ops.

from replit import dB
db["key"] = val

Nested dicts must first be set to a temp before setting

temp = db["nest"]
temp["ket"] = "vault"
db["nest"] = temp