Are you looking for more information on the Dallify Discord bot?
Let me guess. Ever since you started using Midjourney in the summer of 2022, Discord as a working environment has started to grow on you.
And now that DALL-E 2 has been officially released to the public, you’re wondering whether there are any Discord-based alternatives to the official web app.
In this guide, we’ll introduce you to the Dallify Discord bot and help you with the initial steps toward installing it on your own server.
Let’s dive right in.
Like this content? Then share it!
Dallify Discord Bot: Everything You Need to Knowwww.tokenizedhq.com
Here’s the answer. Great article by @ChrisHeidorn right here: https://tokenizedhq.com/dallify/
Key Points (tl;dr)
- Dallify is a sample codebase provided by OpenAI which implements the DALL-E API inside a Discord bot that is similar to Midjourney.
- It is safe to say that OpenAI’s objective is to foster the development of alternative DALL-E clients that make use of their API service.
- Those who wish to add Dallify to their Discord server currently have to self-host it, requiring the assistance of a developer.
What is Dallify?
The Dallify repository on the official OpenAI GitHub page serves as an example for running a Discord Bot that uses the DALL-E API to generate images.
When DALL-E 2 was finally released into public beta in late September 2022, there was a lot of excitement in the AI art community.
Users flocked to the official DALL-E 2 web app and started to enter their prompts, curious to see what it would generate.
However, for some users, something felt off about the experience.
After a summer of endless fun playing around with Midjourney inside various different Discord servers, many users had grown accustomed to entering their prompts via commands.
Furthermore, the open and collaborative experience that makes Midjourney so appealing to many users was strikingly absent from OpenAI’s classic SaaS approach.
It was only a matter of time before people would start asking for a Discord bot that could generate DALL-E 2 images.
We previously covered the lack of an official DALL-E Discord bot in one of our older articles.
Even though there were some alternatives, they used the much less performant, albeit free, DALL-E Mini model.
But then, in early November 2022, OpenAI finally released the DALL-E API, which obviously opened up so many new possibilities for developers around the world.
Although we’re not 100% sure, we suspect that the OpenAI team has set up the “Dallify” GitHub repository in an attempt to foster the development of community-built Discord clients for DALL-E.
The repo explicitly states that it is an example code and that it is not accepting any Pull Requests.
Instead, developers should fork the repo if they want to add or change any of its features.
It’s important to point out that Dallify’s features are still very limited.
We believe the objective of Dallify is to simply showcase some basic functionality that serves as a template for other developers.
Dallify’s features currently include:
- A “Draw” command that lets you generate between 1 and 9 images.
- A “Save” button sends the images to your DMs (this is similar to Midjourney).
- The “Reroll” button runs another set of variations on the same prompts.
- “Expand” allows you to zoom out of the image using the Inpainting endpoint. We suspect this is effectively the same as the Uncrop feature.
How to Get Dallify Discord Bot
We need to point out that Dallify is strictly not meant to be used by regular end users.
First of all, unlike many other Discord bots, Dallify is not a hosted service.
If you want to install this on your own Discord server, you’ll need the help of a developer.
Of course, if you’re a developer yourself, then there’s nothing stopping you from getting started right away.
We’re not going to get into all the nitty-gritty details of setting up an entirely new Discord bot, but we at least want to point you in the right direction.
More details can be found on the official Dallify GitHub page.
1. Discord Bot Setup
If you’ve never set up your own Discord bot before, please refer to this setup guide.
Dallify is built with DiscordJS, one of the most popular frameworks for building Discord bots.
Your bot will need the following server permissions:
- Send Messages
- Use Slash Commands
- Attach Files
You’ll find a structure for the invite link inside the
src/Bot.ts file of the repo.
2. Secrets Setup
Since Dallify will need to interact with the DALL-E API, you need to configure the API keys.
- Follow the comments in
- Add your Discord bot’s client ID and token to the
- Then copy your server’s ID into the
config.json(check this article for guidance)
- Finally, copy your OpenAPI key into
config.json(find your API keys here)
3. Node Server Setup
Once everything is properly configured, you can spin up your Node server that will run the Discord bot.
Here are the steps:
- Install brew if you don’t have it on your system (click here for help).
brew install npmif you don’t have NPM installed.
- Then enter
npm installinside the repo’s root directory.
- Finally, enter
npm run startinside the root folder to start up the bot.
Frequently Asked Questions (FAQ)
Before we close off this guide, let’s quickly address some of the most common questions related to Dallify.
Is there a Discord bot for DALL-E?
Shortly after releasing the DALL-E API to the public, a new repo called “Dallify” was added to the official OpenAI GitHub. It serves as a basic template for developers who want to build their own DALL-E Discord bot using the API.
Do I need to host Dallify by myself?
Dallify is just a codebase and you need to run it on your own server. While some developers may offer hosted versions of Dallify in the future, you currently need to self-host the bot if want to add it to your server.
Can I contribute to the Dallify repo?
You can, albeit indirectly. You will have to do so by forking the repo and pursuing your own development pathway. The official Dallify repo does not accept Pull Requests at this time.
It’s interesting how Midjourney’s go-to-market strategy managed to influence the behaviors of users in the AI art community.
What originally felt like an awkward working environment has now engrained itself into people’s perception of where and how AI art should be created.
Clearly, the OpenAI team has realized that there is a great need for a Discord-based DALL-E client.
Although they are probably not interested in developing a Discord bot themselves, fostering community-build projects is still good for their bottom line since it will increase the use of their API.
Here at Tokenized, we want to help you learn as much as possible about the AI software industry. We help you navigate the world of tech and the digitalization of our society at large, including the tokenization of assets and services.