Created
July 23, 2010 21:24
-
-
Save jagipson/488058 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
else | |
new_config = BOT_CONFIG | |
new_config[:autoload_plugins] = args | |
@bot.write_configuration(new_config) | |
# In lieu of reloading the configuration file, just redefine the constant | |
Kernel.remove_const(:BOT_CONFIG) if Kernel.const_defined?(:BOT_CONFIG) | |
Kernel.const_set(:BOT_CONFIG, new_config) | |
msg nick, "new configuration saved." | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment