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
time.sleep(0.25)
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
time.sleep(0.25)
print("Sending Prompts...")
for prompt in prompts:
payload = {
'content': prompt
}
r = requests.post("discord channel id", json=payload, headers=header)
time.sleep(1.5)
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.