disco.helpers package#
No module description available.
- disco.helpers.get_log_handler(suffix: str) RotatingFileHandler#
Configure the logging for the bot (taken from discord.py docs.)
- Parameters:
suffix – The suffix for the log file
- Returns:
The logging handler
Submodules#
disco.helpers.atomicwrites module#
No module description available.
disco.helpers.database module#
No module description available.
- disco.helpers.database.bootstrap() None#
Bootstrap the database.
disco.helpers.sorting module#
No module description available.
- disco.helpers.sorting.deep_sort(data: dict | list) dict | list#
Recursively sort JSON-like structure by its keys and lists by their elements.
- Parameters:
data – JSON-like structure to sort
- Returns:
Sorted JSON-like structure