|
|
@@ -14,6 +14,12 @@ from cogs.crosspostcog import CrossPostCog
|
|
14
|
14
|
from cogs.generalcog import GeneralCog
|
|
15
|
15
|
from cogs.joinraidcog import JoinRaidCog
|
|
16
|
16
|
|
|
|
17
|
+CURRENT_CONFIG_VERSION = 1
|
|
|
18
|
+if (CONFIG.get('__config_version') or 0) < CURRENT_CONFIG_VERSION:
|
|
|
19
|
+ raise RuntimeError('config.py format may be outdated. Review ' +
|
|
|
20
|
+ 'config.py.sample, update the "__config_version" field to ' +
|
|
|
21
|
+ f'{CURRENT_CONFIG_VERSION}, and try again.')
|
|
|
22
|
+
|
|
17
|
23
|
class Rocketbot(commands.Bot):
|
|
18
|
24
|
def __init__(self, command_prefix, **kwargs):
|
|
19
|
25
|
super().__init__(command_prefix, **kwargs)
|