mirror of
https://git.wownero.com/lza_menace/suchwow.git
synced 2024-08-15 01:03:19 +00:00
add cli helper for posting memes to boards
This commit is contained in:
parent
42af653ff3
commit
a0cc6b8897
1 changed files with 10 additions and 0 deletions
|
@ -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…
Reference in a new issue