Closed Ueland closed 9 years ago
I suggest the following:
VikingBot.php:
require("config.dist.php");
require("config.php");
[...]
config.php / config.dist.php:
$config['server'] = 'servername';
[...]
This way new variables will be declared and existing ones will be overriden by config.php. Also: No need for unchanged config in config.php. Your idea WILL create problems IMHO.
When doing bot upgrade via the upgrade plugin, new configuration settings are not added to existing config.php from config.dist.php, which it should do to make upgrades even more easier in the feature.