dhvitOP / multiple-purpose-discord-bot-like-carlbot

A MultiPurpose Discord bot Named Dumb Bot which does Almost Everything You will need in one bot and with 230+ Commands and does almost everything which is in carl-bot or dyno
https://www.dumb-dsc.tk
Apache License 2.0
82 stars 91 forks source link

Error: `db.prepare(UPDATE ${options.table} SET json = (?) WHERE ID = (?)).run(params.data, params.id);` #5

Closed NoobCoderJJ closed 3 years ago

NoobCoderJJ commented 3 years ago

I am facing this error for some time now:


  db.prepare(`UPDATE ${options.table} SET json = (?) WHERE ID = (?)`).run(params.data, params.id);
                                                                      ^
SqliteError: attempt to write a readonly database
    at Object.module.exports [as add] (C:\Users\super\OneDrive\Documents\Andro Bot\node_modules\quick.db\src\methods\add.js:37:71)
    at arbitrate (C:\Users\super\OneDrive\Documents\Bot\node_modules\quick.db\src\index.js:396:27)
    at Object.add (C:\Users\super\OneDrive\Documents\Bot\node_modules\quick.db\src\index.js:91:16)
    at module.exports (C:\Users\super\OneDrive\Documents\Bot\events\message.js:204:5)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
dhvitOP commented 3 years ago

Make your repl public if you are hosting on repl

NoobCoderJJ commented 3 years ago

@dhvitOP No, I am actually self-hosting!

NoobCoderJJ commented 3 years ago

@dhvitOP I asked someone else but they said that the id wasn't provided...

NoobCoderJJ commented 3 years ago

Ok, I am closing this issue!