UNPKG

tester-scraper

Version:

Sebuah Module Scraper yang dibuat oleh Sxyz dan SuzakuTeam untuk memudahkan penggunaan scraper di project ESM maupun CJS.

15 lines (13 loc) 409 B
const axios = require("axios"); const { Success, ErrorResponse } = require("../../cjs/lib/function.cjs"); const VelynAPI = { velynAI: async chat => { try { const { data } = await axios.get(`https://velyn.biz.id/api/ai/velyn-1.0-1b?prompt=${chat}`) return new Success(data) } catch (errorResponses) { return new ErrorResponse(errorResponses) } } } module.exports = { VelynAPI };