示例#1
0
def genre_in_request(ctx: Context, actor: Actor) -> bool:
    return bool((book := universal.get_book(ctx, actor))
                and universal.genre_of_book(book[1]))
示例#2
0
def date_in_request(ctx: Context, actor: Actor) -> bool:
    return bool((book := universal.get_book(ctx, actor))
                and universal.get_published_year(book[1]))
示例#3
0
def about_in_request(ctx: Context, actor: Actor) -> bool:
    return bool((book := universal.get_book(ctx, actor))
                and universal.what_is_book_about(book[1]))
示例#4
0
def date_in_slots(ctx: Context, actor: Actor) -> bool:
    return bool((book := universal.get_book(ctx, actor))
                and (book[2] or check_slot("cur_book_ago")))
示例#5
0
def book_in_request(ctx: Context, actor: Actor) -> bool:
    return bool(universal.get_book(ctx, actor))