Skip to content

Commit f898648

Browse files
committed
UPDATE VERSION - 2.2.1
2 NEW ENDPOINTS
1 parent d77c4ea commit f898648

8 files changed

Lines changed: 40 additions & 95 deletions

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

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

20-
2120
## **Installation**
2221
```
2322
npm install memer-api
@@ -28,7 +27,7 @@ const memer = new Meme();
2827
memer.<Method>(<Options>); //returns -> Promise -> <Buffer>
2928
```
3029

31-
**Join our [Discord Server](https://discord.gg/pe3V7uT) for Support**
30+
**Join our [Discord Server](https://discord.gg/emD44ZJaSA) for Support**
3231

3332

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

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

66-
Made by: [@shinchanOP](https://github.com/shinchanOP),
65+
Made by: [@shinchanOP](https://github.com/shinchanOP),
6766
Maintained by: [@Tomato6966](https://github.com/Tomato6966) & [@shinchanOP](https://github.com/shinchanOP)
6867

6968
## PREVIEWS

docs/Welcome/started.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

docs/Welcome/welcome.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

docs/examples/examplebot.js

Lines changed: 0 additions & 34 deletions
This file was deleted.

docs/index.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

lib/Meme.js

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,42 @@ var Meme = /** @class */ (function () {
4141
});
4242
});
4343
};
44+
/**
45+
* vr
46+
* @param {String} avatar url to generate meme
47+
*/
48+
Meme.prototype.vr = function (text) {
49+
if (!text)
50+
throw new SyntaxError("You are Missing the AVATAR");
51+
return new Promise(function (resolve, reject) {
52+
fetch.get(encodeURI(base + "/vr?text=" + text)).then(function (data) {
53+
//send data back
54+
resolve(data.raw);
55+
return;
56+
})["catch"](function (error) {
57+
//if error reject the error
58+
reject(error);
59+
});
60+
});
61+
};
62+
/**
63+
* search
64+
* @param {String} avatar url to generate meme
65+
*/
66+
Meme.prototype.search = function (text) {
67+
if (!text)
68+
throw new SyntaxError("You are Missing the AVATAR");
69+
return new Promise(function (resolve, reject) {
70+
fetch.get(encodeURI(base + "/isearch?text=" + text)).then(function (data) {
71+
//send data back
72+
resolve(data.raw);
73+
return;
74+
})["catch"](function (error) {
75+
//if error reject the error
76+
reject(error);
77+
});
78+
});
79+
};
4480
/**
4581
* trash
4682
* @param {String} avatar url to generate meme

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "memer-api",
3-
"version": "2.1.4",
3+
"version": "2.2.1",
44
"description": "An Image Manipulation API With More than 50+ commands",
55
"main": "index.js",
66
"scripts": {
@@ -16,7 +16,7 @@
1616
"type": "git",
1717
"url": "git@github.com:shinchanOP/memer-api.git"
1818
},
19-
"homepage": "https://github.com/Milrato-Development",
19+
"homepage": "https://github.com/Memer-Api",
2020
"keywords": [
2121
"memerapi",
2222
"memer-api",

0 commit comments

Comments
 (0)