randydev commited on
Commit
303c23e
·
1 Parent(s): 5c7d800
Files changed (1) hide show
  1. plugins/hentai.js +2 -1
plugins/hentai.js CHANGED
@@ -24,7 +24,8 @@ const HentaiRoutes = express.Router();
24
  */
25
  HentaiRoutes.get('/api/v1/anime/random', authenticateApiKey, apiLimiter, async (req, res) => {
26
  try {
27
- const result = await SendWaifuRandom().sendWaifuPics();
 
28
  if (result) {
29
  res.json({ result });
30
  } else {
 
24
  */
25
  HentaiRoutes.get('/api/v1/anime/random', authenticateApiKey, apiLimiter, async (req, res) => {
26
  try {
27
+ const responses = new SendWaifuRandom();
28
+ const result = await responses.sendWaifuPics();
29
  if (result) {
30
  res.json({ result });
31
  } else {