HerzaJ commited on
Commit
1bc1088
·
verified ·
1 Parent(s): 3bd897d

Update plugins/sora2.js

Browse files
Files changed (1) hide show
  1. plugins/sora2.js +3 -3
plugins/sora2.js CHANGED
@@ -3,7 +3,7 @@ const dns = require('dns').promises;
3
 
4
  const PROXY_URL = 'http://pnode1.danbot.host:1271';
5
  const API_BASE_URL = 'https://api.bylo.ai';
6
-
7
  dns.setServers(['1.1.1.1', '8.8.8.8', '8.8.4.4']);
8
 
9
  function generateUniqueId() {
@@ -156,7 +156,7 @@ async function getHcaptchaToken() {
156
  const apis = [
157
  {
158
  name: 'Anabot',
159
- url: 'https://anabot.my.id/api/tools/bypass?url=https%3A%2F%2Fbylo.ai%2Ffeatures%2Fsora-2&siteKey=6f70c0f2-3ef6-4972-9fb6-c0b4bade3af8&type=hcaptcha-invisible&apikey=freeApikey',
160
  extract: (data) => data.data.result.token
161
  },
162
  {
@@ -526,6 +526,6 @@ module.exports = {
526
  parameters: ['prompt', 'ratio', 'key'],
527
  enabled: true,
528
  main: ['AI'],
529
- limit: 10,
530
  handler
531
  };
 
3
 
4
  const PROXY_URL = 'http://pnode1.danbot.host:1271';
5
  const API_BASE_URL = 'https://api.bylo.ai';
6
+ const keyGua = process.env.KEYGUA
7
  dns.setServers(['1.1.1.1', '8.8.8.8', '8.8.4.4']);
8
 
9
  function generateUniqueId() {
 
156
  const apis = [
157
  {
158
  name: 'Anabot',
159
+ url: `https://anabot.my.id/api/tools/bypass?url=https%3A%2F%2Fbylo.ai%2Ffeatures%2Fsora-2&siteKey=6f70c0f2-3ef6-4972-9fb6-c0b4bade3af8&type=hcaptcha-invisible&apikey=${keyGua}`,
160
  extract: (data) => data.data.result.token
161
  },
162
  {
 
526
  parameters: ['prompt', 'ratio', 'key'],
527
  enabled: true,
528
  main: ['AI'],
529
+ limit: 15,
530
  handler
531
  };