forked from pinks/eris
1
0
Fork 0

Adding "help" function to txt2img

Base form of the "help" function in txt2img
This commit is contained in:
Hitmare 2023-09-24 21:53:03 +00:00
parent 62247b81bc
commit 8acfbafe16
1 changed files with 22 additions and 0 deletions

View File

@ -67,6 +67,28 @@ async function txt2img(ctx: ErisContext, match: string, includeRepliedTo: boolea
params = parsePngInfo(match, params); params = parsePngInfo(match, params);
if (ctx.message.text.trim() == "help") {
await ctx.reply(`
Usage: /txt2img <tags> [options]
<>: required
[]: optional
available options:
negative:<tags>
steps:<number>
detail:<number>
size:<number>x<number>
upscale:<multiplier number>
denoising:<number> between 0 and 1 with two decimal places
Example:
/txt2img dog, anthro, woodland steps:40 detail:7 size:500x600 upscale:2 denoising:0.57 negative:badyiffymix, boring_e621_fluffyrock_v4
`, {
reply_to_message_id: ctx.message?.message_id,
});
}
if (!params.prompt) { if (!params.prompt) {
await ctx.reply( await ctx.reply(
"Please tell me what you want to see." + "Please tell me what you want to see." +