Skip to content

Commit

Permalink
UPDATE VERSION - 2.2.1
Browse files Browse the repository at this point in the history
2 NEW ENDPOINTS
  • Loading branch information
Yash094 committed May 3, 2021
1 parent d77c4ea commit f898648
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 95 deletions.
1 change: 0 additions & 1 deletion .gitignore

This file was deleted.

5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

Memer API is a powerful module that allows you to manipulate images very easily.


## **Installation**
```
npm install memer-api
Expand All @@ -28,7 +27,7 @@ const memer = new Meme();
memer.<Method>(<Options>); //returns -> Promise -> <Buffer>
```

**Join our [Discord Server](https://discord.gg/pe3V7uT) for Support**
**Join our [Discord Server](https://discord.gg/emD44ZJaSA) for Support**


**For more help view [Documentation ](https://memer-api.js.org)**
Expand Down Expand Up @@ -63,7 +62,7 @@ memer.jail(avatar).then(jail=> {

[WRAPPER BASED FROM SNOWFLAKES API WRAPPER](https://github.com/DevSnowflake/dankmemer.js#readme)

Made by: [@shinchanOP](https://github.com/shinchanOP),
Made by: [@shinchanOP](https://github.com/shinchanOP),
Maintained by: [@Tomato6966](https://github.com/Tomato6966) & [@shinchanOP](https://github.com/shinchanOP)

## PREVIEWS
Expand Down
23 changes: 0 additions & 23 deletions docs/Welcome/started.md

This file was deleted.

22 changes: 0 additions & 22 deletions docs/Welcome/welcome.md

This file was deleted.

34 changes: 0 additions & 34 deletions docs/examples/examplebot.js

This file was deleted.

10 changes: 0 additions & 10 deletions docs/index.yml

This file was deleted.

36 changes: 36 additions & 0 deletions lib/Meme.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,42 @@ var Meme = /** @class */ (function () {
});
});
};
/**
* vr
* @param {String} avatar url to generate meme
*/
Meme.prototype.vr = function (text) {
if (!text)
throw new SyntaxError("You are Missing the AVATAR");
return new Promise(function (resolve, reject) {
fetch.get(encodeURI(base + "/vr?text=" + text)).then(function (data) {
//send data back
resolve(data.raw);
return;
})["catch"](function (error) {
//if error reject the error
reject(error);
});
});
};
/**
* search
* @param {String} avatar url to generate meme
*/
Meme.prototype.search = function (text) {
if (!text)
throw new SyntaxError("You are Missing the AVATAR");
return new Promise(function (resolve, reject) {
fetch.get(encodeURI(base + "/isearch?text=" + text)).then(function (data) {
//send data back
resolve(data.raw);
return;
})["catch"](function (error) {
//if error reject the error
reject(error);
});
});
};
/**
* trash
* @param {String} avatar url to generate meme
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "memer-api",
"version": "2.1.4",
"version": "2.2.1",
"description": "An Image Manipulation API With More than 50+ commands",
"main": "index.js",
"scripts": {
Expand All @@ -16,7 +16,7 @@
"type": "git",
"url": "[email protected]:shinchanOP/memer-api.git"
},
"homepage": "https://github.com/Milrato-Development",
"homepage": "https://github.com/Memer-Api",
"keywords": [
"memerapi",
"memer-api",
Expand Down

0 comments on commit f898648

Please sign in to comment.