Improve docs for memegen

pull/134/head
stijndcl 2022-09-22 17:01:29 +02:00
parent f19a832725
commit f049f1c80b
1 changed files with 5 additions and 0 deletions

View File

@ -48,6 +48,11 @@ class Fun(commands.Cog):
Example: `memegen a b c d` will be parsed as `template: "a"`, `fields: ["b", "c", "d"]` Example: `memegen a b c d` will be parsed as `template: "a"`, `fields: ["b", "c", "d"]`
Example: `memegen "a b" "c d"` will be parsed as `template: "a b"`, `fields: ["c d"]` Example: `memegen "a b" "c d"` will be parsed as `template: "a b"`, `fields: ["c d"]`
In case a template only has 1 field, quotes aren't required and your arguments will be combined into one field.
Example: if template `a` only has 1 field,
`memegen a b c d` will be parsed as `template: "a"`, `fields: ["bcd"]`
""" """
async with ctx.typing(): async with ctx.typing():
meme = await self._do_generate_meme(template, shlex.split(fields)) meme = await self._do_generate_meme(template, shlex.split(fields))