seperated stable_diffusion, and openai functions into plugins
This commit is contained in:
parent
c380d8f1a0
commit
86bfcfde0c
3 changed files with 357 additions and 296 deletions
|
|
@ -424,6 +424,20 @@ async def reimagine(ctx):
|
|||
await ctx.send("My image generation service may not be running.")
|
||||
await handle_error(error)
|
||||
await http_session.close()
|
||||
|
||||
@commands.command(
|
||||
description="Negative Prompt",
|
||||
help="Changes the negative prompt for imagine across all channels",
|
||||
brief="Change the negative prompt for imagine"
|
||||
)
|
||||
async def negative_prompt(ctx, *args):
|
||||
message = ' '.join(args)
|
||||
if not message:
|
||||
message = "easynegative, badhandv4, verybadimagenegative_v1.3"
|
||||
neg_prompt_file = "databases/negative_prompt.txt"
|
||||
with open(neg_prompt_file, 'w') as f:
|
||||
f.writelines(message)
|
||||
await ctx.send("Changed negative prompt to " + message)
|
||||
|
||||
|
||||
async def setup(bot):
|
||||
|
|
@ -432,4 +446,5 @@ async def setup(bot):
|
|||
bot.add_command(describe)
|
||||
bot.add_command(change_model)
|
||||
bot.add_command(lora)
|
||||
bot.add_command(draw)
|
||||
bot.add_command(draw)
|
||||
bot.add_command(negative_prompt)
|
||||
Loading…
Add table
Add a link
Reference in a new issue