1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Suggestion User based script preference profiles

Discussion in 'Client & Site Suggestions' started by Exia, Dec 16, 2014.

  1. Exia

    Joined:
    Nov 3, 2013
    Messages:
    609
    Likes Received:
    259
    Some of my older scripts bots would save a prefs file to disk and load it back up the next time the script bot was started. Can you provide a utility that let's us store script bot preferences for a user that will be tied to their account? This way there is less of a security risk letting scripters write to disk as well as a convenience to the user so when log in on different computers their default settings can be loaded up. This could be implemented through the onStart() arguments array that is already passed, or through a class that acts like hashmap allowing the scripter to store string keys and string values.
     
  2. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    There already is a getPreferences method in the AbstractScript class, or something along that line at least.
     
  3. Exia

    Joined:
    Nov 3, 2013
    Messages:
    609
    Likes Received:
    259
    But does that sync between clients on different hosts, or it is local file system based?
     
  4. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    It's based on the local file system, and although I like what you're saying right now isn't the time to implement it.
     

Share This Page

Loading...