Enums

class ezcord.enums.LogFormat(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[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(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[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(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[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(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[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}'
default = 'Loaded {sum} cogs'
class ezcord.enums.ReadyEvent(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Styles for the ready event. This can be used in Bot.

box = 0
box_colorful = 1
box_bold = 2
logs = 3
table = 4
table_bold = 5
table_vertical = 6
table_vertical_bold = 7
default = 4