Utils¶
- class yarsaw.Utils¶
- async format_joke(joke, format_as='{setup}\n{delivery}')¶
Support function for Client().get_joke(). Auto-format a joke. If its a single type of joke, it returns the joke itself. If its a two-part joke, it returns the setup and delivery, separated by a newline or a character you choose.
- async generate_uid(chars=8, special_chars=False, letters=True)¶
Support function for Client().get_ai_response(). Generates a random string of characters to be used as a unique identifier for a user.
- Parameters
- Returns
The generated UID.
- Return type
Pages¶
Welcome to YARSAW! - The main page of the documentation
Client - Explains how to use the client - the main class [Very Important]