Enums¶
- class ezcord.enums.LogFormat(*values)[source]¶
Presets for logging formats that can be used in
set_log().{color}and{end}are used to add the default color of the current log level. Specific colors like{red}and{green}can also be used.If no colors are used, the whole log message will be colored.
//at the end of the log format is used to indicate that new lines will be fully colored.- full_color = '[%(levelname)s] %(message)s'¶
- full_color_time = '[%(asctime)s] %(levelname)s: %(message)s'¶
- color_level = '[{color}%(levelname)s{end}] %(message)s'¶
- color_level_time = '[{color}%(asctime)s{end}] [{color}%(levelname)s{end}] %(message)s'¶
- colorful = '{magenta}[%(asctime)s]{end} - {cyan}%(levelname)s{end} | %(message)s'¶
- default = '[{color}%(levelname)s{end}] %(message)s//'¶
- class ezcord.enums.TimeFormat(*values)[source]¶
Presets for the time format that is used in
set_log().- datetime = '%Y-%m-%d %H:%M:%S'¶
- time = '%H:%M:%S'¶
- default = '%H:%M:%S'¶
- class ezcord.enums.HelpStyle(*values)[source]¶
Presets for the help command used in
add_help_command().- embed_fields = 0¶
- embed_description = 1¶
- markdown = 2¶
- codeblocks = 3¶
- codeblocks_inline = 4¶
- default = 0¶
- class ezcord.enums.CogLog(*values)[source]¶
Presets for log messages in
Bot.load_cogs().{cog}is the name of the cog.{directory}is the directory where a cog was loaded from.{path}is the path of a cog.{sum}is the amount of cogs that were loaded.
If
{sum}is used, no other variables except{directory}can be used.- sum = 'Loaded {sum} cogs'¶
- directory_sum = 'Loaded {sum} cogs from {directory}'¶
- path = 'Loaded {path}'¶
- all_cogs = 'Loaded {cog}'¶
- table = 'table'¶
- default = 'Loaded {sum} cogs'¶