예제 #1
0
def subreddits(ctx: Filter, subs):
    matched = ctx.get_subreddit([x.lower() for x in subs])
    ctx.parse_content(matched)
예제 #2
0
def search_comments(ctx: Filter, query):
    matched = ctx.search_comments(query)
    ctx.parse_content(matched)
예제 #3
0
def text_only(ctx: Filter):
    matched = ctx.get_self()
    ctx.parse_content(matched)
예제 #4
0
def filter_media(ctx: Filter, media_type):
    matched = ctx.get_media(media_type)
    ctx.parse_content(matched)
예제 #5
0
def comments(ctx: Filter):
    matched = ctx.get_comments()
    ctx.parse_content(matched)
예제 #6
0
def posts(ctx: Filter):
    matched = ctx.get_posts()
    ctx.parse_content(matched)
예제 #7
0
def show_all(ctx: Filter):
    matched = ctx.get_all()
    ctx.parse_content(matched)
예제 #8
0
def external_links(ctx: Filter):
    matched = ctx.get_external_links()
    ctx.parse_content(matched)
예제 #9
0
def get_nsfw(ctx: Filter):
    matched = ctx.get_nsfw()
    ctx.parse_content(matched)