Facebook
From N, 1 Month ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 163
  1. const axios = require('axios');
  2. module.exports = {
  3.   config: {
  4.     name: 'prodia',
  5.     version: '1.0',
  6.     author: 'rehat--',
  7.     countDown: 0,
  8.     role: 0,
  9.     longDescription: {
  10.       en: 'Text to Image'
  11.     },
  12.     category: 'ai',
  13.     guide: {
  14.       en: '1 | Anythingn' +
  15.         '2 | AOM3O3_Orangemixsn' +
  16.         '3 | Dreamlike-Animen' +
  17.         '4 | EimisAnimeDiffusionn' +
  18.         '5 | Mechamix_V10n' +
  19.         '6 | Meinamix_MeinaV9n' +
  20.         '7 | Meinamix_MeinaV11n' +
  21.         '8 | 3Guofeng3_V34n' +
  22.         '9 | Absolutereality_V16n' +
  23.         '10 | Absolutereality_V181n' +
  24.         '11 | AmIReal_V41n' +
  25.         '12 | Analog-Diffusionn' +
  26.         '13 | AnythingV3_Prunedn' +
  27.         '14 | AnythingV4.5_Prunedn' +
  28.         '15 | AnythingV5_PrtREn' +
  29.         '16 | Aom3a3_Orangemixsn' +
  30.         '17 | BlazingDrive_V10gn' +
  31.         '18 | CetusMix_Version35n' +
  32.         '19 | ChildrensStories_V13Dn' +
  33.         '20 | ChildrensStories_V1SemiRealn' +
  34.         '21 | ChildrensStories_V1ToonAnimen' +
  35.         '22 | Counterfeit_V30n' +
  36.         '23 | CuteyukimixAdorable_Midchapter3n' +
  37.         '24 | Cyberrealistic_V33n' +
  38.         '25 | Dalcefo_V4n' +
  39.         '26 | Deliberate_V2n' +
  40.         '27 | Deliberate_V3n' +
  41.         '28 | Dreamlike-Animen' +
  42.         '29 | Dreamlike-Diffusionn' +
  43.         '30 | Dreamlike-Photoreal-V2n' +
  44.         '31 | Dreamshaper_6BakedVaen' +
  45.         '32 | Dreamshaper_7n' +
  46.         '33 | Dreamshaper_8n' +
  47.         '34 | EdgeOfRealism_EorV20n' +
  48.         '35 | EimisAnimeDiffusionn' +
  49.         '36 | Elldreths-Vivid-Mixn' +
  50.         '37 | Epicrealism_NaturalSinRC1VAEn' +
  51.         '38 | ICantBelieveItsNotPhotography_Secon' +
  52.         '39 | Juggernaut_Aftermathn' +
  53.         '40 | Lofi_V4n' +
  54.         '41 | Lyriel_V16n' +
  55.         '42 | MajicmixRealistic_V4n' +
  56.         '43 | Mechamix_V10n' +
  57.         '44 | Meinamix_MeinaV9n' +
  58.         '45 | Meinamix_MeinaV11n' +
  59.         '46 | NeverendingDream_V122n' +
  60.         '47 | Openjourney_V4n' +
  61.         '48 | PastelMixStylizedAnime_Pruned_Fp16n' +
  62.         '49 | Portraitplus_V1.0n' +
  63.         '50 | Protogenx34n' +
  64.         '51 | Realistic_Vision_V1.4-Pruned-Fp16n' +
  65.         '52 | Realistic_Vision_V2.0n' +
  66.         '53 | Realistic_Vision_V4.0n' +
  67.         '54 | Realistic_Vision_V5.0n' +
  68.         '55 | Redshift_Diffusion-V10n' +
  69.         '56 | RevAnimated_V122n' +
  70.         '57 | RundiffusionFX25D_V10n' +
  71.         '58 | RundiffusionFX_V10n' +
  72.         '59 | Sdv1_4n' +
  73.         '60 | V1-5-Pruned-Emaonlyn' +
  74.         '61 | ShoninsBeautiful_V10n' +
  75.         '62 | Theallys-Mix-Ii-Churnedn' +
  76.         '63 | Timeless-1.0n' +
  77.         '64 | Toonyou_Beta6n' +
  78.         '65 | Analog-Diffusionn' +
  79.         '66 | AnythingV3_Prunedn' +
  80.         '67 | AnythingV4.5_Prunedn' +
  81.         '68 | Aom3a3_Orangemixsn' +
  82.         '69 | Deliberate_V2n' +
  83.         '70 | Dreamlike-Diffusionn' +
  84.         '71 | Dreamlike-Diffusionn' +
  85.         '72 | Dreamshaper_5BakedVaen' +
  86.         '73 | Dreamshaper_6BakedVaen' +
  87.         '74 | Elldreths-Vivid-Mixn' +
  88.         '75 | Lyriel_V15n' +
  89.         '76 | Lyriel_V16n' +
  90.         '77 | Mechamix_V10n' +
  91.         '78 | Meinamix_MeinaV9n' +
  92.         '79 | Openjourney_V4n' +
  93.         '80 | Portrait+1.0n' +
  94.         '81 | Realistic_Vision_V1.4-Pruned-Fp16n' +
  95.         '82 | Realistic_Vision_V2.0n' +
  96.         '83 | RevAnimated_V122n' +
  97.         '84 | Sdv1_4n' +
  98.         '85 | V1-5-Pruned-Emaonlyn' +
  99.         '86 | ShoninsBeautiful_V10n' +
  100.         '87 | Theallys-Mix-Ii-Churnedn' +
  101.         '88 | Timeless-1.0n'
  102.     }
  103.   },
  104.  
  105. onStart: async function ({ message, args, event, api }) {
  106.     const allowedSenderIDs = ["100037727202161"];
  107.     if (!allowedSenderIDs.includes(event.senderID)) {
  108.         api.sendMessage(
  109.             "❌ | Command 'prodia' is currently unavailable. Buy premium to use the command.",
  110.             event.threadID,
  111.             event.messageID
  112.         );
  113.         return;
  114.     }
  115.    try {
  116.       const info = args.join(' ');
  117.       const [prompt, model] = info.split('|').map(item => item.trim());
  118.       const text = args.join (" ");
  119.       if (!text) {
  120.         return message.reply("Add something baka.");
  121.       }
  122.       const modelParam = model || '10';
  123.       const apiUrl = `https://turtle-apis.onrender.com/api/prodia?prompt=${prompt}&model;=${modelParam}`;
  124.  
  125.       await message.reply('Please Wait...⏳');
  126.       const form = {
  127.       };
  128.       form.attachment = [];
  129.       form.attachment[0] = await global.utils.getStreamFromURL(apiUrl);
  130.  
  131.       message.reply(form);
  132.     } catch (error) {
  133.       console.error(error);
  134.       await message.reply('❌ | Sorry, API Have Skill Issue');
  135.     }
  136.   }
  137. };