add cli helper for posting memes to boards

This commit is contained in:
lza_menace 2020-12-04 10:57:34 -08:00
parent 42af653ff3
commit a0cc6b8897

View file

@ -92,6 +92,16 @@ def post_new_memes():
post_discord_webhook(post)
return
@app.cli.command("post_meme")
@click.argument("post_id")
def post_new_memes(post_id):
post = Post.get(id=post_id)
if not post.to_reddit:
make_post(post)
if not post.to_discord:
post_discord_webhook(post)
return
@app.cli.command("reddit_random")
def reddit_random():
# run every 8 hours