def add(backend, variable, value, force=False):
print('<STR_LIT>')<EOL>settings = read_client_secrets()<EOL>prefix = '<STR_LIT>' %backend.upper()<EOL>if not variable.startswith(prefix):<EOL><INDENT>variable = '<STR_LIT>' %(prefix, variable)<EOL><DEDENT>variable = variable.upper()<EOL>bot.info("<STR_LIT>" %(variable, value))<EOL>if backend in settings:<EOL><INDENT>if variable in settings[backend] and force is False:<EOL><INDENT>previous = settings[backend][variable]<EOL>bot.error('<STR_LIT>' %(variable, previous))<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT><DEDENT>if backend not in settings:<EOL><INDENT>settings[backend] = {}<EOL><DEDENT>settings[backend][variable] = value<EOL>update_secrets(settings)<EOL>
add the variable to the config