utils
Last updated
Was this helpful?
Last updated
Was this helpful?
randomstuff.utils
is a sub module that contains some useful functions to aid with the API interactions.
generate_uid
Generates a complex and safe to use unique ID. This is very useful when you need a unique key for AI response endpoint.
format_joke
A simple method to turn a two-part joke into a string. It simply formats two-part joke in provided format, By default is: '{setup}... {delivery}'
get_safe_joke
For example:
A method that filters or ignores any unsafe joke. This method is made to be used in replacement to method.
Your or instance.
Type: Union[
,
]
Equivalent to
Type: Union[
,
]