ok
Browse files- lib/sendWaifuRandom.js +4 -2
lib/sendWaifuRandom.js
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
import axios from 'axios';
|
2 |
|
3 |
class SendWaifuRandom {
|
4 |
-
|
|
|
|
|
5 |
const LIST_SFW_JPG = ["neko", "waifu", "megumin"];
|
6 |
const waifuApi = "https://api.waifu.pics/sfw";
|
7 |
const waifuCategory = LIST_SFW_JPG[Math.floor(Math.random() * LIST_SFW_JPG.length)];
|
@@ -28,4 +30,4 @@ class SendWaifuRandom {
|
|
28 |
}
|
29 |
}
|
30 |
|
31 |
-
export
|
|
|
1 |
import axios from 'axios';
|
2 |
|
3 |
class SendWaifuRandom {
|
4 |
+
constructor() {
|
5 |
+
}
|
6 |
+
async sendWaifuPics() {
|
7 |
const LIST_SFW_JPG = ["neko", "waifu", "megumin"];
|
8 |
const waifuApi = "https://api.waifu.pics/sfw";
|
9 |
const waifuCategory = LIST_SFW_JPG[Math.floor(Math.random() * LIST_SFW_JPG.length)];
|
|
|
30 |
}
|
31 |
}
|
32 |
|
33 |
+
export { SendWaifuRandom };
|