set_profile('default') worked well! thanks. I found the set_profile(‘default’) in the guide before as im very new to python and phbot plugins the wording were a little bit confusing to me. I searched for “Profiles” inside of phbot but havent found one so i thought it were something from an older Version. Anyways, i know want to loop the config change. Ive tried def event_loop(): but that didnt worked. I dont know if a “def” can be looped? if i try to loop def event_loop(): log(‘loop’) it does work, but with the changing config def from JellyBitz it does not. Can you help me out again?
Here is the code
from phBot import *
log('Plugin: xAutoConfig successfully loaded.')
# Called when the user successfully selects a character. No character data has been loaded yet.
# JSON config not found
if not os.path.exists(get_config_path()):
# Looking for JSON default configs
defaultConfig = get_config_dir()+"config2"
# Loading JSON default configs
log("Plugin: Default JSON configurations successfully loaded (xAutoConfig)")
log('[%s] Loaded' % __name__)