Linked Questions

Popular Questions

In my python code, im generating prompts using ChatGPT and sending them automatically to the discord bot Midjourney. With the /imagine part that already comes with the generated prompts, it usually commands the bot to create the images thats it's prompted with (when you copy and paste it with the website), but when sending those prompts per

# Open The File Containing The Prompts
print("Copying Prompts...")
file_path = "...\Output.txt"
with open(file_path, 'r') as file:
    prompts = [line.strip() for line in file if line.strip()]

# Sending Prompts To Discord
print("Sending Prompts...")
for prompt in prompts:
    payload = {
        'content': prompt

    r ="discord channel id", json=payload, headers=header)

print("Prompts Sent")

the midjourney discord bot doesnt recognize it as a command but rather as plain text. What can i do?

I tried sending the prompts using json=payload instead of data=payload but that didn't work either.

Related Questions