|
|
@@ -1,5 +1,5 @@
|
|
1
|
1
|
"""
|
|
2
|
|
-Rocketbot Discord bot. Relies on a configured config.py (copy config.py.sample
|
|
|
2
|
+Rocketbot Discord bot. Relies on a configured config.py (copy config.sample.py
|
|
3
|
3
|
for a template).
|
|
4
|
4
|
|
|
5
|
5
|
Author: Ian Albert (@rocketsoup)
|
|
|
@@ -27,11 +27,11 @@ from rocketbot.utils import bot_log
|
|
27
|
27
|
CURRENT_CONFIG_VERSION = 3
|
|
28
|
28
|
if (CONFIG.get('__config_version') or 0) < CURRENT_CONFIG_VERSION:
|
|
29
|
29
|
# If you're getting this error, it means something changed in config.py's
|
|
30
|
|
- # format. Consult config.py.sample and compare it to your own config.py.
|
|
|
30
|
+ # format. Consult config.sample.py and compare it to your own config.py.
|
|
31
|
31
|
# Rename/move any values as needed. When satisfied, update "__config_version"
|
|
32
|
|
- # to the value in config.py.sample.
|
|
|
32
|
+ # to the value in config.sample.py. ...I know, pretty janky migration process.
|
|
33
|
33
|
raise RuntimeError('config.py format may be outdated. Review ' +
|
|
34
|
|
- 'config.py.sample, update the "__config_version" field to ' +
|
|
|
34
|
+ 'config.sample.py, update the "__config_version" field to ' +
|
|
35
|
35
|
f'{CURRENT_CONFIG_VERSION}, and try again.')
|
|
36
|
36
|
|
|
37
|
37
|
class Rocketbot(commands.Bot):
|