Find Jobs & Talent for the Web3 Revolution
Web3 Jobs

Dallify Discord Bot: Everything You Need to Know

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.

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!
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?

Infographic explaining what the Dallify Discord bot is.
Infographic explaining what the Dallify Discord bot is.

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.

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.

Even though there were some alternatives, they used the much less performant, albeit free, DALL-E Mini model.

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.

Dallify’s 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:

How to Get Dallify Discord Bot

Infographic showing what the Dallify Discord Bot looks like in action.
Infographic showing what the Dallify Discord Bot looks like in action.

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.

  1. Follow the comments in src/utils/constants.ts to create src/utils/config.json.
  2. Add your Discord bot’s client ID and token to the config.json
  3. Then copy your server’s ID into the config.json (check this article for guidance)
  4. 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:

  1. Install brew if you don’t have it on your system (click here for help).
  2. Use brew install npm if you don’t have NPM installed.
  3. Then enter npm install inside the repo’s root directory.
  4. Finally, enter npm run start inside 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.

Conclusion

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.

Total
1
Shares
Share
Tweet
Share
Share
Share
Pin it