Skip to content
This repository has been archived by the owner on Apr 10, 2021. It is now read-only.

Hosting with SQLite #8

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,27 @@ For the client, be sure to clone the repository with submodules enabled, then si
8. Change directory to `/client`
9. Open cmd/PowerShell/terminal and run `dotnet build`

Note: When using Linux, I recommend setting up a `.sh` file to simplify the process when rebooting the bot, as some bugs in the code require a restart.
Note: When using Linux, I recommend setting up a `.sh` file to simplify the process when rebooting the bot, as some bugs in the code require a restart.

### Hosting with SQLite

Alternatively, you can host Impostor without PostgreSQL by changing `bot/knexfile.js` and installing SQLite depency:

`npm i sqlite3 @mikro-orm/sqlite`
```js
const db = {
// MikroORM
type: "sqlite",
dbName: "data.db",
// Knex
client: "sqlite3",
useNullAsDefault: true,
connection: {filename: './data.db'},
};
```

It's not recommended to use SQLite if bot is used in 10+ servers.
Keep in mind, that your storage should be persistent (not Heroku, Docker etc) in this case.

# License

Expand Down