Skip to content

Instantly share code, notes, and snippets.

@jagipson
Created July 23, 2010 21:24
Show Gist options
  • Save jagipson/488058 to your computer and use it in GitHub Desktop.
Save jagipson/488058 to your computer and use it in GitHub Desktop.
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