|
|
@@ -1,6 +1,6 @@
|
|
1
|
1
|
"""
|
|
2
|
|
-Rocketbot Discord bot. Relies on a configured config.py (copy config.py.sample for a template) and
|
|
3
|
|
-the sqlite database rocketbot.db (copy rocketbot.db.sample for a blank database).
|
|
|
2
|
+Rocketbot Discord bot. Relies on a configured config.py (copy config.py.sample
|
|
|
3
|
+for a template).
|
|
4
|
4
|
|
|
5
|
5
|
Author: Ian Albert (@rocketsoup)
|
|
6
|
6
|
Date: 2021-11-11
|
|
|
@@ -18,6 +18,10 @@ from cogs.urlspamcog import URLSpamCog
|
|
18
|
18
|
|
|
19
|
19
|
CURRENT_CONFIG_VERSION = 3
|
|
20
|
20
|
if (CONFIG.get('__config_version') or 0) < CURRENT_CONFIG_VERSION:
|
|
|
21
|
+ # If you're getting this error, it means something changed in config.py's
|
|
|
22
|
+ # format. Consult config.py.sample and compare it to your own config.py.
|
|
|
23
|
+ # Rename/move any values as needed. When satisfied, update "__config_version"
|
|
|
24
|
+ # to the value in config.py.sample.
|
|
21
|
25
|
raise RuntimeError('config.py format may be outdated. Review ' +
|
|
22
|
26
|
'config.py.sample, update the "__config_version" field to ' +
|
|
23
|
27
|
f'{CURRENT_CONFIG_VERSION}, and try again.')
|