make third_party.utils.make_toot async
This commit is contained in:
parent
4e4619fbe0
commit
d0965d437b
3 changed files with 7 additions and 31 deletions
2
gen.py
2
gen.py
|
|
@ -22,7 +22,7 @@ async def main():
|
|||
args = parse_args()
|
||||
cfg = utils.load_config(args.cfg)
|
||||
|
||||
toot = utils.make_toot(cfg, mode=utils.TextGenerationMode.__members__[args.mode])
|
||||
toot = await utils.make_post(cfg, mode=utils.TextGenerationMode.__members__[args.mode])
|
||||
if cfg['strip_paired_punctuation']:
|
||||
toot = re.sub(r"[\[\]\(\)\{\}\"“”«»„]", "", toot)
|
||||
if not args.simulate:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue