def add_access_token(creds_file=None):
    if creds_file is None:
        path = os.path.dirname(__file__)
        creds_file = os.path.join(path, 'credentials2.txt')
    oauth2 = credsfromfile(creds_file=creds_file)
    app_key = oauth2['app_key']
    app_secret = oauth2['app_secret']

    twitter = Twython(app_key, app_secret, oauth_version=2)
    access_token = twitter.obtain_access_token()
    tok = 'access_token={}\n'.format(access_token)
    with open(creds_file, 'a') as infile:
        print(tok, file=infile)
Getter. Allows for value = self.name. Returns a list of cmdset_storage.
dataset/ETHPy150Open nltk/nltk/nltk/twitter/util.py/add_access_token--crossover with--dataset/ETHPy150Open evennia/evennia/evennia/players/models.py/PlayerDB.__cmdset_storage_get