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
38
38
Commando has built-in command prefix configuration per-guild, as well as enabling and disabling commands per-guild.
39
39
In order for this to persist across restarts, you should use a [ SettingProvider] ( https://discord.js.org/#/docs/commando/master/class/SettingProvider ) .
40
40
There 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:
42
42
43
43
``` javascript
44
44
const sqlite = require (' sqlite' );
45
+ const sqlite3 = require (' sqlite3' );
45
46
46
47
client .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))
48
49
).catch (console .error );
49
50
```
50
51
You can’t perform that action at this time.
0 commit comments