nekos.life
Advanced tools
Comparing version
@@ -0,0 +0,0 @@ --- |
@@ -0,0 +0,0 @@ --- |
@@ -61,3 +61,2 @@ { | ||
"fact": "/fact", | ||
"chat": "/chat", | ||
"nekoGif": "/img/ngif", | ||
@@ -64,0 +63,0 @@ "kemonomimi": "/img/kemonomimi", |
@@ -0,0 +0,0 @@ const {get} = require('https'); |
{ | ||
"name": "nekos.life", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "JS wrapper for https://nekos.life", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -99,5 +99,4 @@ [](https://www.npmjs.com/package/nekos.life) | ||
`sfw.8Ball` will return JSON `{response: <8Ball response string>, url: <URL to a matching 8Ball image>}` | ||
`sfw.chat` will return JSON `{response: <reply string>}`, this one is special and will have an example :) | ||
As of now, `OwOify`, `8Ball`, and `Chat` are the only ones with query parameters. It requires an object containing the parameter, and the key should be the value. In this case, the key is `text` and the value is whatever you want OwOified. There is an example in this README. | ||
As of now, `OwOify` and `8Ball` are the only ones with query parameters. It requires an object containing the parameter, and the key should be the value. In this case, the key is `text` and the value is whatever you want OwOified. There is an example in this README. | ||
`{text: 'Some text you want weebified.}` | ||
@@ -157,21 +156,2 @@ | ||
`Chat` example | ||
```js | ||
const client = require('nekos.life'); | ||
const neko = new client(); | ||
async function work() { | ||
let owo = await neko.sfw.chat({text: "What's up?"}); | ||
console.log(owo); | ||
} | ||
work(); | ||
``` | ||
returns | ||
```js | ||
{ response: 'Not much.' } | ||
``` | ||
Try adding `owo: "true"` after the text prop ;). It would look like this `{text: "What's up?", owo: "true"}` | ||
`8Ball` is prety much the exact same thing, except you can't use `owo` with it! | ||
NSFW example | ||
@@ -178,0 +158,0 @@ ```js |
@@ -0,0 +0,0 @@ //List all the functions |
Sorry, the diff of this file is not supported yet
9
12.5%17928
-2.37%219
-0.45%192
-9.43%