This repository was archived by the owner on Dec 24, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -38,13 +38,14 @@ client.registry
3838Commando has built-in command prefix configuration per-guild, as well as enabling and disabling commands per-guild.
3939In order for this to persist across restarts, you should use a [ SettingProvider] ( https://discord.js.org/#/docs/commando/master/class/SettingProvider ) .
4040There is a built-in SQLiteProvider that comes with Commando, which stores all settings in an SQLite3 database.
41- To use it, install the ` sqlite ` module with NPM (` npm install --save sqlite ` ). Then, set the provider on the client:
41+ To use it, install the ` sqlite ` and the ` sqlite3 ` module with NPM (` npm install --save sqlite sqlite3 ` ). Then, set the provider on the client:
4242
4343``` javascript
4444const sqlite = require (' sqlite' );
45+ const sqlite3 = require (' sqlite3' );
4546
4647client .setProvider (
47- sqlite .open (path . join ( __dirname , ' settings.sqlite3 ' ) ).then (db => new Commando.SQLiteProvider (db))
48+ sqlite .open ({ filename : ' database.db ' , driver : sqlite3 . Database } ).then (db => new Commando.SQLiteProvider (db))
4849).catch (console .error );
4950```
5051
You can’t perform that action at this time.
0 commit comments