make third_party.utils.make_toot async

This commit is contained in:
io 2021-07-26 06:29:20 +00:00
parent 4e4619fbe0
commit d0965d437b
3 changed files with 7 additions and 31 deletions

2
gen.py
View file

@ -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: