nonimageapi
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -19,3 +19,3 @@ const fetch = require('node-fetch'); | ||
fetch(url + `memes?json=true`).then(res => res.json()).then(data => { | ||
return data; | ||
return data.post; | ||
}); | ||
@@ -27,3 +27,3 @@ } else return url + `memes`; | ||
fetch(url + `cats?json=true`).then(res => res.json()).then(data => { | ||
return data; | ||
return data.post; | ||
}); | ||
@@ -30,0 +30,0 @@ } else return url + `cats`; |
{ | ||
"name": "nonimageapi", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "An image api for you to have fun", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -9,4 +9,6 @@ # NonImageApi (Beta) | ||
const images = new NonImageApi(); | ||
images.memes() // Set json to true or false (Optional) | ||
images.cats() // Set json to true or false (Optional) | ||
async() { | ||
await images.memes() // Set json to true or false (Optional) | ||
await images.cats() // Set json to true or false (Optional) | ||
}(); | ||
``` | ||
@@ -20,3 +22,3 @@ | ||
`cats(<Json>)` - Take pictures of cats from reddit [Cats](https://www.reddit.com/r/cats) (Json optional). | ||
`fakemsg(<message>, <username>, <avatar>, <bot>)` - Creates a fake Discord message / Direct from our api website (Bot optional) | ||
`fakemsg(<message>, <username>, <avatar>, <bot>)` - Creates a fake Discord message / Direct from our api website (Bot optional) : (In construction...); | ||
@@ -27,6 +29,6 @@ # Coming Soon | ||
# Thanks to contributors | ||
<center> | ||
[M. Experimental](https://twitter.com/m_experimental?s=09) | ||
[M. Experimental](https://github.com/experimentaljs) | ||
[ImmaUGC](https://github.com/ImmaUgc) | ||
[ApenasIgorDev](https://github.com/apenasigordev) | ||
</center> | ||
[ApenasIgorDev](https://github.com/apenasigordev) |
Sorry, the diff of this file is not supported yet
2590
31