-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
120 lines (119 loc) · 2.57 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
const superagent = require("superagent");
async function smug() {
const {
body
} = await superagent
.get('https://nekos.life/api/v2/img/smug');
var gif = body.url;
return Promise.resolve(gif);
}
async function hug() {
const {
body
} = await superagent
.get('https://nekos.life/api/v2/img/hug');
var gif = body.url;
return Promise.resolve(gif);
}
async function kiss() {
const {
body
} = await superagent
.get('https://nekos.life/api/kiss');
var gif = body.url;
return Promise.resolve(gif);
}
async function pat() {
const {
body
} = await superagent
.get('https://nekos.life/api/v2/img/pat');
var gif = body.url;
return Promise.resolve(gif);
}
async function poke() {
const {
body
} = await superagent
.get('https://nekos.life/api/v2/img/poke');
var gif = body.url;
return Promise.resolve(gif);
}
async function slap() {
const {
body
} = await superagent
.get('https://nekos.life/api/v2/img/slap');
var gif = body.url;
return Promise.resolve(gif);
}
async function tickle() {
const {
body
} = await superagent
.get('https://nekos.life/api/v2/img/tickle');
var gif = body.url;
return Promise.resolve(gif);
}
async function neko() {
const {
body
} = await superagent
.get('https://nekos.life/api/neko');
var gif = body.neko;
return Promise.resolve(gif);
}
async function ngif() {
const {
body
} = await superagent
.get('https://nekos.life/api/v2/img/ngif');
var gif = body.url;
return Promise.resolve(gif);
}
async function cuddle() {
const {
body
} = await superagent
.get('https://nekos.life/api/v2/img/cuddle');
var gif = body.url;
return Promise.resolve(gif);
}
async function dog() {
const {
body
} = await superagent
.get('https://random.dog/woof.json');
var gif = body.url;
return Promise.resolve(gif);
}
async function cat() {
const {
body
} = await superagent
.get('http://aws.random.cat/meow');
var gif = body.file;
return Promise.resolve(gif);
}
async function meme() {
const {
body
} = await superagent
.get('https://meme-api.herokuapp.com/gimme');
return Promise.resolve(body);
}
module.exports = {
smug: smug,
hug: hug,
neko: neko,
tickle: tickle,
slap: slap,
poke: poke,
pat: pat,
kiss: kiss,
ngif: ngif,
cuddle: cuddle,
dog: dog,
cat: cat,
meme: meme
};