Advertisement
AnshorFalahi

genimg

Jul 12th, 2024
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. exports.run = {
  2.     usage: ['genimg'],
  3.     use: 'text',
  4.     category: 'utilities',
  5.     async: async (m, {
  6.       client,
  7.       text,
  8.       isPrefix,
  9.       command,
  10.       Func,
  11.       args,
  12.       body,
  13.     }) => {
  14.       try {
  15.         let prompt = text
  16.         if (!prompt) return client.reply(m.chat, Func.example(isPrefix, command, 'black cat'), m)
  17.         var models =[{
  18.           name: "single_select",
  19.           buttonParamsJson: JSON.stringify({
  20.               title: "Berikut adalah model ai yang tersedia",
  21.               sections: [{
  22.                 rows: [{
  23.                   title: "3 Guofeng3 V3.4",
  24.                   description: "3Guofeng3_v34.safetensors [50f420de]",
  25.                   id: `.genimage ${prompt}|1|4`
  26.               }, {
  27.                   title: "Absolute Reality V1.6",
  28.                   description: "absolutereality_V16.safetensors [37db0fc3]",
  29.                   id: `.genimage ${prompt}|2|4`
  30.               }, {
  31.                   title: "Absolute Reality V1.8.1",
  32.                   description: "absolutereality_v181.safetensors [3d9d4d2b]",
  33.                   id: `.genimage ${prompt}|3|4`
  34.               }, {
  35.                   title: "Am I Real V4.1",
  36.                   description: "amIReal_V41.safetensors [0a8a2e61]",
  37.                   id: `.genimage ${prompt}|4|4`
  38.               }, {
  39.                   title: "Analog V1",
  40.                   description: "analog-diffusion-1.0.ckpt [9ca13f02]",
  41.                   id: `.genimage ${prompt}|5|4`
  42.               }, {
  43.                   title: "Anything V3",
  44.                   description: "anythingv3_0-pruned.ckpt [2700c435]",
  45.                   id: `.genimage ${prompt}|6|4`
  46.               }, {
  47.                   title: "Anything V4.5",
  48.                   description: "anything-v4.5-pruned.ckpt [65745d25]",
  49.                   id: `.genimage ${prompt}|7|4`
  50.               }, {
  51.                   title: "Anything V5",
  52.                   description: "anythingV5_PrtRE.safetensors [893e49b9]",
  53.                   id: `.genimage ${prompt}|8|4`
  54.               }, {
  55.                   title: "AbyssOrangeMix V3",
  56.                   description: "AOM3A3_orangemixs.safetensors [9600da17]",
  57.                   id: `.genimage ${prompt}|9|4`
  58.               }, {
  59.                   title: "Blazing Drive V10g",
  60.                   description: "blazing_drive_v10g.safetensors [ca1c1eab]",
  61.                   id: `.genimage ${prompt}|10|4`
  62.               }, {
  63.                   title: "BreakDomain I2428",
  64.                   description: "breakdomain_I2428.safetensors [43cc7d2f]",
  65.                   id: `.genimage ${prompt}|11|4`
  66.               }, {
  67.                   title: "BreakDomain M2150",
  68.                   description: "breakdomain_M2150.safetensors [15f7afca]",
  69.                   id: `.genimage ${prompt}|12|4`
  70.               }, {
  71.                   title: "CetusMix Version35",
  72.                   description: "cetusMix_Version35.safetensors [de2f2560]",
  73.                   id: `.genimage ${prompt}|13|4`
  74.               }, {
  75.                   title: "Children's Stories V1 3D",
  76.                   description: "childrensStories_v13D.safetensors [9dfaabcb]",
  77.                   id: `.genimage ${prompt}|14|4`
  78.               }, {
  79.                   title: "Children's Stories V1 SemiReal",
  80.                   description: "childrensStories_v1SemiReal.safetensors [a1c56dbb]",
  81.                   id: `.genimage ${prompt}|15|4`
  82.               }, {
  83.                   title: "Children's Stories V1 Toon-Anime",
  84.                   description: "childrensStories_v1ToonAnime.safetensors [2ec7b88b]",
  85.                   id: `.genimage ${prompt}|16|4`
  86.               }, {
  87.                   title: "Counterfeit V3.0",
  88.                   description: "Counterfeit_v30.safetensors [9e2a8f19]",
  89.                   id: `.genimage ${prompt}|17|4`
  90.               }, {
  91.                   title: "CuteYukimix MidChapter3",
  92.                   description: "cuteyukimixAdorable_midchapter3.safetensors [04bdffe6]",
  93.                   id: `.genimage ${prompt}|18|4`
  94.               }, {
  95.                   title: "CyberRealistic V3.3",
  96.                   description: "cyberrealistic_v33.safetensors [82b0d085]",
  97.                   id: `.genimage ${prompt}|19|4`
  98.               }, {
  99.                   title: "Dalcefo V4",
  100.                   description: "dalcefo_v4.safetensors [425952fe]",
  101.                   id: `.genimage ${prompt}|20|4`
  102.               }, {
  103.                   title: "Deliberate V2",
  104.                   description: "deliberate_v2.safetensors [10ec4b29]",
  105.                   id: `.genimage ${prompt}|21|4`
  106.               }, {
  107.                   title: "Deliberate V3",
  108.                   description: "deliberate_v3.safetensors [afd9d2d4]",
  109.                   id: `.genimage ${prompt}|22|4`
  110.               }, {
  111.                   title: "Dreamlike Anime V1",
  112.                   description: "dreamlike-anime-1.0.safetensors [4520e090]",
  113.                   id: `.genimage ${prompt}|23|4`
  114.               }, {
  115.                   title: "Dreamlike Diffusion V1",
  116.                   description: "dreamlike-diffusion-1.0.safetensors [5c9fd6e0]",
  117.                   id: `.genimage ${prompt}|24|4`
  118.               }, {
  119.                   title: "Dreamlike Photoreal V2",
  120.                   description: "dreamlike-photoreal-2.0.safetensors [fdcf65e7]",
  121.                   id: `.genimage ${prompt}|25|4`
  122.               }, {
  123.                   title: "Dreamshaper 6 baked vae",
  124.                   description: "dreamshaper_6BakedVae.safetensors [114c8abb]",
  125.                   id: `.genimage ${prompt}|26|4`
  126.               }, {
  127.                   title: "Dreamshaper 7",
  128.                   description: "dreamshaper_7.safetensors [5cf5ae06]",
  129.                   id: `.genimage ${prompt}|27|4`
  130.               }, {
  131.                   title: "Dreamshaper 8",
  132.                   description: "dreamshaper_8.safetensors [9d40847d]",
  133.                   id: `.genimage ${prompt}|28|4`
  134.               }, {
  135.                   title: "Edge of Realism EOR V2.0",
  136.                   description: "edgeOfRealism_eorV20.safetensors [3ed5de15]",
  137.                   id: `.genimage ${prompt}|29|4`
  138.               }, {
  139.                   title: "Eimis Anime Diffusion V1.0",
  140.                   description: "EimisAnimeDiffusion_V1.ckpt [4f828a15]",
  141.                   id: `.genimage ${prompt}|30|4`
  142.               }, {
  143.                   title: "Elldreth's Vivid",
  144.                   description: "elldreths-vivid-mix.safetensors [342d9d26]",
  145.                   id: `.genimage ${prompt}|31|4`
  146.               }, {
  147.                   title: "epiCPhotoGasm X Plus Plus",
  148.                   description: "epicphotogasm_xPlusPlus.safetensors [1a8f6d35]",
  149.                   id: `.genimage ${prompt}|32|4`
  150.               }, {
  151.                   title: "EpiCRealism Natural Sin RC1",
  152.                   description: "epicrealism_naturalSinRC1VAE.safetensors [90a4c676]",
  153.                   id: `.genimage ${prompt}|33|4`
  154.               }, {
  155.                   title: "EpiCRealism Pure Evolution V3",
  156.                   description: "epicrealism_pureEvolutionV3.safetensors [42c8440c]",
  157.                   id: `.genimage ${prompt}|34|4`
  158.               }, {
  159.                   title: "I Cant Believe Its Not Photography Seco",
  160.                   description: "ICantBelieveItsNotPhotography_seco.safetensors [4e7a3dfd]",
  161.                   id: `.genimage ${prompt}|35|4`
  162.               }, {
  163.                   title: "Indigo Furry Mix V7.5 Hybrid",
  164.                   description: "indigoFurryMix_v75Hybrid.safetensors [91208cbb]",
  165.                   id: `.genimage ${prompt}|36|4`
  166.               }, {
  167.                   title: "Juggernaut Aftermath",
  168.                   description: "juggernaut_aftermath.safetensors [5e20c455]",
  169.                   id: `.genimage ${prompt}|37|4`
  170.               }, {
  171.                   title: "Lofi V4",
  172.                   description: "lofi_v4.safetensors [ccc204d6]",
  173.                   id: `.genimage ${prompt}|38|4`
  174.               }, {
  175.                   title: "Lyriel V1.6",
  176.                   description: "lyriel_v16.safetensors [68fceea2]",
  177.                   id: `.genimage ${prompt}|39|4`
  178.               }, {
  179.                   title: "MajicMix Realistic V4",
  180.                   description: "majicmixRealistic_v4.safetensors [29d0de58]",
  181.                   id: `.genimage ${prompt}|40|4`
  182.               }, {
  183.                   title: "MechaMix V1.0",
  184.                   description: "mechamix_v10.safetensors [ee685731]",
  185.                   id: `.genimage ${prompt}|41|4`
  186.               }, {
  187.                   title: "MeinaMix Meina V9",
  188.                   description: "meinamix_meinaV9.safetensors [2ec66ab0]",
  189.                   id: `.genimage ${prompt}|42|4`
  190.               }, {
  191.                   title: "MeinaMix Meina V11",
  192.                   description: "meinamix_meinaV11.safetensors [b56ce717]",
  193.                   id: `.genimage ${prompt}|43|4`
  194.               }, {
  195.                   title: "Neverending Dream V1.22",
  196.                   description: "neverendingDream_v122.safetensors [f964ceeb]",
  197.                   id: `.genimage ${prompt}|44|4`
  198.               }, {
  199.                   title: "Openjourney V4",
  200.                   description: "openjourney_V4.ckpt [ca2f377f]",
  201.                   id: `.genimage ${prompt}|45|4`
  202.               }, {
  203.                   title: "Pastel-Mix",
  204.                   description: "pastelMixStylizedAnime_pruned_fp16.safetensors [793a26e8]",
  205.                   id: `.genimage ${prompt}|46|4`
  206.               }, {
  207.                   title: "Portrait+ V1",
  208.                   description: "portraitplus_V1.0.safetensors [1400e684]",
  209.                   id: `.genimage ${prompt}|47|4`
  210.               }, {
  211.                   title: "Protogen x3.4",
  212.                   description: "protogenx34.safetensors [5896f8d5]",
  213.                   id: `.genimage ${prompt}|48|4`
  214.               }, {
  215.                   title: "Realistic Vision V1.4",
  216.                   description: "Realistic_Vision_V1.4-pruned-fp16.safetensors [8d21810b]",
  217.                   id: `.genimage ${prompt}|49|4`
  218.               }, {
  219.                   title: "Realistic Vision V2.0",
  220.                   description: "Realistic_Vision_V2.0.safetensors [79587710]",
  221.                   id: `.genimage ${prompt}|50|4`
  222.               }, {
  223.                   title: "Realistic Vision V4.0",
  224.                   description: "Realistic_Vision_V4.0.safetensors [29a7afaa]",
  225.                   id: `.genimage ${prompt}|51|4`
  226.               }, {
  227.                   title: "Realistic Vision V5.0",
  228.                   description: "Realistic_Vision_V5.0.safetensors [614d1063]",
  229.                   id: `.genimage ${prompt}|52|4`
  230.               }, {
  231.                   title: "Redshift Diffusion V1.0",
  232.                   description: "redshift_diffusion-V10.safetensors [1400e684]",
  233.                   id: `.genimage ${prompt}|53|4`
  234.               }, {
  235.                   title: "ReV Animated V1.2.2",
  236.                   description: "revAnimated_v122.safetensors [3f4fefd9]",
  237.                   id: `.genimage ${prompt}|54|4`
  238.               }, {
  239.                   title: "RunDiffusion FX 2.5D V1.0",
  240.                   description: "rundiffusionFX25D_v10.safetensors [cd12b0ee]",
  241.                   id: `.genimage ${prompt}|55|4`
  242.               }, {
  243.                   title: "RunDiffusion FX Photorealistic V1.0",
  244.                   description: "rundiffusionFX_v10.safetensors [cd4e694d]",
  245.                   id: `.genimage ${prompt}|56|4`
  246.               }, {
  247.                   title: "SD V1.4",
  248.                   description: "sdv1_4.ckpt [7460a6fa]",
  249.                   id: `.genimage ${prompt}|57|4`
  250.               }, {
  251.                   title: "SD V1.5",
  252.                   description: "v1-5-pruned-emaonly.safetensors [d7049739]",
  253.                   id: `.genimage ${prompt}|58|4`
  254.               }, {
  255.                   title: "SD V1.5 Inpainting",
  256.                   description: "v1-5-inpainting.safetensors [21c7ab71]",
  257.                   id: `.genimage ${prompt}|59|4`
  258.               }, {
  259.                   title: "Shonin's Beautiful People V1.0",
  260.                   description: "shoninsBeautiful_v10.safetensors [25d8c546]",
  261.                   id: `.genimage ${prompt}|60|4`
  262.               }, {
  263.                   title: "TheAlly's Mix II",
  264.                   description: "theallys-mix-ii-churned.safetensors [5d9225a4]",
  265.                   id: `.genimage ${prompt}|61|4`
  266.               }, {
  267.                   title: "Timeless V1",
  268.                   description: "timeless-1.0.ckpt [7c4971d4]",
  269.                   id: `.genimage ${prompt}|62|4`
  270.               }, {
  271.                   title: "ToonYou Beta 6",
  272.                   description: "toonyou_beta6.safetensors [980f6b15]",
  273.                   id: `.genimage ${prompt}|63|4`
  274.               }]
  275.               }]
  276.           })
  277.         }]
  278.  
  279.         await client.sendIAMessage(m.chat, models, m, {
  280.           header: 'Silahkan pilih model ai yang ingin digunakan',
  281.           content: '',
  282.           footer: '',
  283.        })
  284.      
  285.        //jika user reply pesan model ai
  286.        if(m.quoted && m.quoted.sender == client.user.jid){
  287.         client.sendMessage(m.chat, {
  288.           delete: {
  289.              remoteJid: m.chat,
  290.              fromMe: true,
  291.              id: m.quoted.id,
  292.              participant: m.quoted.sender
  293.           }
  294.        })
  295.        }
  296.  
  297.       } catch (e) {
  298.           client.reply(m.chat, Func.jsonFormat(e), m)
  299.       }
  300.     },
  301.     error: false,
  302.     limit: true,
  303.     cache: true,
  304.     location: __filename
  305. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement