PyDrocsid.config ¶
Config ¶
Global bot configuration
Source code in PyDrocsid/config.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
|
Contributor ¶
Collection of all contributors. Each contributor is a (discord_id, github_id) tuple.
Source code in PyDrocsid/config.py
20 21 22 23 24 25 26 27 28 |
|
get_subclasses_in_enabled_packages ¶
get_subclasses_in_enabled_packages(base: Type[T]) -> list[Type[T]]
Get all subclasses of a given base class that are defined in an enabled cog package.
Source code in PyDrocsid/config.py
72 73 74 75 76 77 |
|
load_config_file ¶
load_config_file(path: Path) -> None
Load bot configuration from a config file.
Source code in PyDrocsid/config.py
179 180 181 182 183 184 185 186 187 188 189 190 191 192 |
|
load_language ¶
load_language(config: dict[str, Any]) -> None
Load language configuration.
Source code in PyDrocsid/config.py
102 103 104 105 106 107 |
|
load_permission_levels ¶
load_permission_levels(config: dict[str, Any]) -> None
Load permission level configuration.
Source code in PyDrocsid/config.py
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 |
|
load_pydrocsid_info ¶
load_pydrocsid_info(config: dict[str, Any]) -> None
Load pydrocsid information.
Source code in PyDrocsid/config.py
95 96 97 98 99 |
|
load_repo ¶
load_repo(config: dict[str, Any]) -> None
Load repository configuration.
Source code in PyDrocsid/config.py
86 87 88 89 90 91 92 |
|
load_version ¶
load_version() -> None
Get bot version either from the VERSION file or from git describe and store it in the bot config.
Source code in PyDrocsid/config.py
80 81 82 83 |
|