randydev commited on
Commit
97c414f
·
1 Parent(s): 59007b2
Files changed (1) hide show
  1. lib/sendWaifuRandom.js +4 -2
lib/sendWaifuRandom.js CHANGED
@@ -1,7 +1,9 @@
1
  import axios from 'axios';
2
 
3
  class SendWaifuRandom {
4
- static async sendWaifuPics() {
 
 
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 default SendWaifuRandom;
 
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 };