database.config

Module Contents

Classes

Config

Global bot configuration.

class database.config.Config

Global bot configuration.

idx
prefix
mention_as_prefix
language
gender
status
static get() Config

Get instance of global bot settings.

If there is none, it will be created with the default values.

Default values for configuration

Attribute

Type

Default value

prefix

str

!

mention_as_prefix

bool

True

language

str

en

gender

str

m

status

str

online

save(self) None

Save global settings.

dump(self) Dict[str, Union[bool, str]]

Return object representation as dictionary for easy serialisation.