Make an AI Image Generator Discord Bot like Midjourney 🎨🤖

Поделиться
HTML-код
  • Опубликовано: 14 окт 2024
  • Make an AI Image Generator Discord Bot like Midjourney 🎨🤖
    This video covers how to make an AI Image Generator Discord Bot similar to Midjourney. You don’t need to know how to code as this video only shows how to use an existing codebase where you can add your credentials and use the bot freely. Technologies used includes Node.js, Discord.js (v14.9), and Replicate.
    🌐 Important links
    Node.js: nodejs.org
    Visual Studio Code: code.visualstu...
    Github (bot code): github.com/not...
    Discord Developer Portal: / discord
    Replicate: replicate.com
    Host your bot 24/7: • How to Host your Disco...
    Discord: discord.underc...
    Github: github.com/not...
    Patreon: / underctrl
    Buy me a coffee (one-time donation): buymeacoffee.c...

Комментарии • 86

  • @C4ptBlu3
    @C4ptBlu3 Год назад +2

    Thank you very much! I'm using your bot in our little Discord Community and it works well. I just have a few questions. Is there a way to tweak the outputs? Especially using the mini dall-e model, it generates a grid of 5x5 images which takes a very long time and imo is not that useful. I'd prefer one large image. Also, are there plans to add Stable Diffusion XL 1.0? Looks like they also have a model on replicate now. I really appreciate your work, saved my day!

  • @tahamuratkaracan9848
    @tahamuratkaracan9848 10 месяцев назад +4

    When I do npn install this comes up:
    **name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + npm install
    + ~~~
    + CategoryInfo : ObjectNotFound: (npn:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException**
    As an error
    Do you know what I did wrong ?
    for windows ?

    • @Aleks_Felner
      @Aleks_Felner 2 месяца назад

      I haves the same problem

  • @NUEVOdjNuevo
    @NUEVOdjNuevo Год назад +4

    thanks a lot man! it worked! . Do you know should be possible with this bot, the image-to-image function? or how to achieve it? I tried right away (midjourney style) but no works... thanks in advance!

    • @UnderCtrl
      @UnderCtrl  Год назад +2

      Hi, image to image might be a little more difficult to implement. But it's definitely possible. I'd suggest looking into the API reference for that in Replicate to help you get started. If it's not too extra, I might even do a video on it in the near future!
      Here are some models I found on Replicate which deal with image inputs.
      - ML Makeovers: replicate.com/collections/ml-makeovers
      - Super resolution: replicate.com/collections/super-resolution
      - Style transfer: replicate.com/collections/style-transfer
      - Image restoration: replicate.com/collections/image-restoration
      Pretty sure you can find a ton more so make sure to check out replicate.com/explore in case I'm missing something.

    • @NUEVOdjNuevo
      @NUEVOdjNuevo Год назад +1

      @@UnderCtrl Thanks ton man! i'll dig into it

  • @erlinghaaland3832
    @erlinghaaland3832 Год назад +3

    can we use other services instead of Replicate ?

  • @CasuallyWillis
    @CasuallyWillis Год назад +4

    I appreciate you and everything you do!!

  • @etaigabbai
    @etaigabbai Год назад +2

    Love your vids

  • @DoughnutMini
    @DoughnutMini 9 месяцев назад

    Can you tweak the code to use other ai image generator? Or does this only work with replicate

  • @AnanyaChadha
    @AnanyaChadha 3 месяца назад

    very helpful, thank you so much!!

  • @aloxen_
    @aloxen_ Год назад +1

    Ay thanks for this one ❤

  • @alpcusta
    @alpcusta Год назад +2

    Great vid!
    Can you make new video about db caching?(NodeCache or redis)

    • @UnderCtrl
      @UnderCtrl  Год назад +2

      That's something I have in mind with the economy bot series. Thanks for the suggestion though :)

    • @alpcusta
      @alpcusta Год назад

      ​@@UnderCtrl I did done caching for myself. It's feels like bit pushy however gets job done for now. I wonder how you'll do

  • @CheezyTopqz
    @CheezyTopqz Год назад +2

    Any thoughts on the Reverb bot hack ?

    • @UnderCtrl
      @UnderCtrl  Год назад +2

      The devs should've responded better. They just made conflicting announcements. Of course, you shouldn't use that bot anymore. If the same devs make another bot, cross check what steps they are taking to avoid this issue, and DO NOT give the bot admin permissions.

    • @CheezyTopqz
      @CheezyTopqz Год назад

      @@UnderCtrl very well put! Thank you

  • @Insidersofdisc.
    @Insidersofdisc. 4 месяца назад +1

    Hi,
    In My case its is showing that "the application did not respond"

  • @Im0Prince
    @Im0Prince 11 месяцев назад +1

    when I use online host To host my bot 24/7. it don't run, Help!

  • @dan63356
    @dan63356 Год назад +1

    How would I go about registering new models on the bot as well?

    • @C4ptBlu3
      @C4ptBlu3 Год назад +1

      I'm interested in this as well. I tried adding stability-ai/sdxl but I couldnt get it to work. I assume that it is the models.js in the src folder which has to be edited and I made a new entry there for sdxl. But that didnt effect the model selection using the /imagine command. I'm a coding noob, I looked through every line of code but didnt see anything else that links to the replicate models. Maybe we need for the author to wait to update the program and add better models like SDXL.

  • @ultra-shenlong9367
    @ultra-shenlong9367 5 месяцев назад

    For me it doesn't work with the nPm install. Do you have a tip or can you even help me?

  • @Demfhd
    @Demfhd 6 месяцев назад

    Can we link it to midjourney instead of Replicate?

  • @isacmarginean
    @isacmarginean 10 месяцев назад

    The quality was really bad on tge imges. Is there anything to do to fix it?

  • @DevTeam-b2w
    @DevTeam-b2w Год назад

    hi, how to create command for upload image. I want to build bot and can support remove background api.

  • @bIowi
    @bIowi 8 месяцев назад

    Thank you so much ❤

  • @marketxmaker
    @marketxmaker Год назад +1

    Can you make a tutorial on how to make an Ai Discord Bot similar to the one used in Ai world?

  • @micspamgod2324
    @micspamgod2324 Год назад +1

    Since no one’s asked this question, I will.
    How long does the free trial last? A week, 2 weeks, 1 month?

    • @UnderCtrl
      @UnderCtrl  Год назад +1

      The trial isn't really time dependent. It's based on the number of successful requests. And that number, I have no idea.

    • @micspamgod2324
      @micspamgod2324 Год назад

      @@UnderCtrl Ah okay. Thanks for the quick reply. 👍

  • @handle582
    @handle582 Год назад

    When I do npn install this comes up:
    **name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + npn install
    + ~~~
    + CategoryInfo : ObjectNotFound: (npn:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException**
    As an error
    Do you know what I did wrong ?

  • @Mikeig
    @Mikeig 8 месяцев назад

    Is there any free ai image generators to use for this bot?

  • @banana1234aus_Aviation
    @banana1234aus_Aviation 9 месяцев назад

    when i do npm install it says this. npm : The term 'npm' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
    and try again.
    At line:1 char:1
    + npm install
    + ~~~
    + CategoryInfo : ObjectNotFound: (npm:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

  • @unknowndevian28
    @unknowndevian28 Год назад

    Packages are not installing
    Neither dollar sign is written in terminal

  • @GiorgioCattaneo-b1w
    @GiorgioCattaneo-b1w 9 месяцев назад

    Good video! but /image doesnt go also with bot online..

  • @Doraf
    @Doraf Год назад

    The api is like gpt or this is free?

    • @UnderCtrl
      @UnderCtrl  Год назад

      It's only free at the start.

  • @AmIDuckQuack
    @AmIDuckQuack Год назад +1

    Hey, can you make a video how to make that bot using PC power

    • @OdessyShorts
      @OdessyShorts Год назад

      let me know if you found a solution to this

    • @AmIDuckQuack
      @AmIDuckQuack Год назад

      ​@@OdessyShorts Ok)

  • @dripnarix
    @dripnarix Год назад

    I am getting a "TypeError: this.fetch is not a function" Error. Do you know why?

    • @UnderCtrl
      @UnderCtrl  Год назад +2

      Hi, please post your question on my Discord and I'll help you troubleshoot from there :)

  • @MonicaRozo-d7z
    @MonicaRozo-d7z Год назад

    I´m getting a message that says token invalid, but I've already checked various times and it´s the one I´m getting from replicate.

    • @UnderCtrl
      @UnderCtrl  Год назад

      It’s your bot token that’s invalid

  • @bobwonch
    @bobwonch Год назад

    Just to be clear you will have to pay for this eventually, right?

  • @kirajohnson9416
    @kirajohnson9416 10 месяцев назад

    I'm getting 'Token invalid' What am I doing wrong? I've tried resetting both token links and still nothing.

    • @kirajohnson9416
      @kirajohnson9416 10 месяцев назад

      I figured it out. Thank you! This is awesome.

  • @hotmle123
    @hotmle123 Год назад +1

    I can't seem to make it past this point.
    npm : The term 'npm' is not recognized as the name of a cmdlet, function, script file, or
    operable program. Check the spelling of the name, or if a path was included, verify that the
    path is correct and try again.
    At line:1 char:1
    + npm install
    + ~~~
    + CategoryInfo : ObjectNotFound: (npm:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

    • @UnderCtrl
      @UnderCtrl  Год назад

      That error is due to node.js not being installed correctly.

    • @RealNexScript
      @RealNexScript Год назад

      @@UnderCtrl How do we fix that?

    • @ronronmelon
      @ronronmelon Год назад

      i got the same error and found out because the path messd up after unzip the folder. now working fine

    • @Hero-lc7zt
      @Hero-lc7zt Год назад

      what did you do?
      @@ronronmelon

  • @izukumidoriya9332
    @izukumidoriya9332 Год назад

    Pls make an replit version!!

  • @Vl4dUA
    @Vl4dUA Год назад

    when i do npm run start it ticks me
    npm ERROR! Missing script: "start"
    npm ERROR!
    npm ERROR! Did you mean one of these?
    npm ERROR! npm star # Mark your favorite packages
    npm ERROR! npm stars # View packages marked as favorites
    npm ERROR!
    npm ERROR! To see a list of scripts, run:
    npm ERROR! npm run
    how to fix this?

  • @mkadinali3670
    @mkadinali3670 Год назад

    What if you want the bot to generate 4 pictures

    • @UnderCtrl
      @UnderCtrl  Год назад +2

      You'd have to modify the code and send 4 attachments because embeds do not support multiple images.

    • @mkadinali3670
      @mkadinali3670 Год назад

      @@UnderCtrl alright fine,, thanks

  • @amalsx
    @amalsx Год назад +1

    Hey can you make a moderation bot using open ai moderation endpoint?
    const { Configuration, OpenAIApi } = require("openai");
    const configuration = new Configuration({
    apiKey: process.env.OPENAI_API_KEY,
    });
    const openai = new OpenAIApi(configuration);
    const response = await openai.createModeration({
    input: "message.",
    });

  • @AmIDuckQuack
    @AmIDuckQuack Год назад

    I have an error: TypeError: this.fetch is not a function

  • @nitrofries
    @nitrofries 8 месяцев назад

    My terminal isn't doing the command

  • @MrGeoffrey1998
    @MrGeoffrey1998 Год назад

    How do you activate NSFW ? :((

  • @burakchemi4871
    @burakchemi4871 Год назад

    imma try it hope it works

  • @luplol6980
    @luplol6980 Год назад

    npm is not installing

  • @sokhakitsya7599
    @sokhakitsya7599 Год назад

    command run error

  • @ilham.mapper49
    @ilham.mapper49 Год назад

    finally

  • @puddinpie9387
    @puddinpie9387 10 месяцев назад

    termanle is brioke fix

  • @grimskull1577
    @grimskull1577 Год назад

    can it make nsfw?

  • @juckj9099
    @juckj9099 Год назад

    can you give me discord sever link. I can't join for image creater bot

  • @MenakaPrasanna
    @MenakaPrasanna Год назад

    i'm getting an err (TypeError: this.fetch is not a function)

    • @UnderCtrl
      @UnderCtrl  Год назад

      Hi, please post your question on my Discord and I'll help you troubleshoot from there :)

  • @ace_x897
    @ace_x897 Год назад

    npm ERR! code ENOENT
    npm ERR! syscall open
    npm ERR! path E:\Coding Project\image-generator-bot-master/package.json
    npm ERR! errno -4058
    npm ERR! enoent ENOENT: no such file or directory, open 'E:\Coding Project\image-generator-bot-master\package.json'
    npm ERR! enoent This is related to npm not being able to find a file.
    npm ERR! enoent
    npm ERR! A complete log of this run can be found in:
    npm ERR! C:\Users\IT BD\AppData\Local
    pm-cache\_logs\2023-06-28T07_20_08_789Z-debug-0.log
    what to do????????

    • @julio75014
      @julio75014 10 месяцев назад

      In your browser, select the folder "image-generator-bot-master"
      Then Right Click: New Terminal at Folder
      Then run the NPM Install Function

  • @ivyliu8104
    @ivyliu8104 Год назад

    this is not working, im stuck on the terminal part. in the terminal, i cant type in what you typed. I can only see this: ivyliu@Ivys-MBP-2 image-generator-bot-master 2 %

    • @UnderCtrl
      @UnderCtrl  Год назад

      That’s your current directory and shouldn’t affect the result. Make sure you click the terminal and type. It’s possible the terminal window is not focused.

  • @nox5802
    @nox5802 Год назад +5

    Thanks for the tutorial, exactly what I was looking for 🫱🏻‍🫲🏼👍