Giter Site home page Giter Site logo

draym / discord-puppet Goto Github PK

View Code? Open in Web Editor NEW
41.0 41.0 9.0 100 KB

Discord client for server side applications, includes Midjourney AI client.

Home Page: https://www.npmjs.com/package/@d-lab/discord-puppet

TypeScript 100.00%
discord midjourney puppet puppeteer

discord-puppet's Introduction

Hi there ๐Ÿ‘‹

I'm a french software engineer building stuff on the web. Mostly interested in Web3 and AI products (yeah all trendy ๐Ÿ™ˆ).

Words Tell Art ๐ŸŒ  an innovative NFT collection using AI for its burn to redeem mechanism, is completed and now live on mainnet.

๐Ÿ‘‹ Currently working on a brand new project on ImmutableX, it is a community dashboard that packup every IMX functionalities and offer a great entry-point for newbies and developers on IMX. Create you collections and mint NFTs using a proper UI on IMX Dashboard.

In the backstage i am working on a new decentralized game distribution platform ๐ŸŽฎ with a simple purpose, give back ownership to players on the titles they purchase. I am also building a fully on-chain multiplayer strategy game where players will build their armies of creature before conquering the whole blockchain ๐Ÿ‘พ๐Ÿ’ฅ.

Release Dashboard

Keeping track of my deployed services and npm packages.

Websites

๐ŸŽจ Words Tell Art

๐Ÿงฐ IMX Dashboard

API services

live

live

live

DLab SDKs @d-lab

API SDKs Product SDKs Utilities SDKs
npm npm npm
npm package npm
npm

discord-puppet's People

Contributors

draym avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

discord-puppet's Issues

puppet.imagine not finishing

Basically, the validate function called from the image method on midjourney.puppet.ts is never returning true.

Looking at it, it seems that the URL of the finished image is not finishing by .png (example: https://cdn.discordapp.com/attachments/1100177662955225110/1157476345492811806/r3p33ls_A_golden_dragon_standing_on_top_of_a_bun_of_diamonds_he_2393d484-209d-4607-8495-3333fcb0660f.png?ex=6518bf59&is=65176dd9&hm=9d1ba2625205659b5dd6a3aa10571fbe323d81a7087a5aaf07eefcaae656c19a&).

The test it.endsWith(".png") should probably be replaced by it.includes(".png")

Installation and usage instructions

Although I haven't started using your project yet, I'd like to thank you in advance. Besides, I'm not familiar with Node, and I only know simple package installation commands. However, I'm unfamiliar with how to package your TypeScript files. I hope you can provide more detailed installation and usage instructions. Thanks again.

Upscale U3 button not being clicked

I was thrilled to find this fantastic library! For the most part, it is working perfectly... But I am having one strange issue. It will not upscale the third image. Here is my code:

export const midjourney = async (prompts: string[], path) => {
  const config: Option = options(
    username,
    password,
    [],
    undefined,
    true,
    false,
    5000,
    5000,
    5000
  );
  const puppet = new MidjourneyPuppet(config);
  await puppet.start();
  await puppet.clickServer(server);
  await puppet.clickChannel(channel);

  for (let i = 0; i < prompts.length; i++) {
    const msg = await puppet.imagine(prompts[i]);
    for (let z = 1; z < 5; z++) {
      const enlargeType: EnlargeType = `U${z}` as EnlargeType;
      const subImage = await puppet.imageEnlarge(msg.messageId, enlargeType);
      await downloadImage(
        subImage.imageUrl!,
        `${path}/${enlargeType}_${i}.png`
      );
    }
  }

  await puppet.shutdown();
};

As you can see, I increased all the delays to 5 seconds to avoid any time delay-related issues. And I checked the code to make sure there wasn't a problem with the enums or anything like that. It just isn't properly clicking the U3 button in Discord. Has anyone else had that issue?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.