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