add cli helper for posting memes to boards

graphs-n-shit
lza_menace 4 years ago
parent 42af653ff3
commit a0cc6b8897

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

Loading…
Cancel
Save