Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sefinek committed Aug 18, 2024
1 parent 6cfb7aa commit 80496b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ The full list of tags is available [on the Booru site](https://nekosia.cat/booru

### Simple
It's really not difficult...

```js
const { NekosiaAPI } = require('nekosia.js');

Expand All @@ -55,6 +56,7 @@ const { NekosiaAPI } = require('nekosia.js');

### IP-based Sessions
In this example, we used an IP-based session. What does this mean? Thanks to this solution, a user with a specific IP address will not encounter duplicates when randomly selecting images.

```js
const { NekosiaAPI } = require('nekosia.js');

Expand All @@ -72,6 +74,7 @@ const { NekosiaAPI } = require('nekosia.js');

### ID-based Sessions
You can also use `id`, but this will require providing a user identifier (e.g., from Discord). Pass this information in `id` as a string.

```js
const { NekosiaAPI } = require('nekosia.js');

Expand Down

0 comments on commit 80496b1

Please sign in to comment.