PRAW returning I need 'add_comment_helper' scope when I have all scopes enabled? Oauth2

Main Script - import praw import obot import traceback import time import sqlite3

print("Logging in...") r = praw.Reddit(obot.app_ua) r.set_oauth_app_info(obot.app_id, obot.app_secret, obot.app_uri) r.refresh_access_information(obot.app_refresh) SUBREDDIT = "bottesting" KEYWORDS = "<<<ghaf>>>" KEYAUTHORS = [] REPLYSTRING = "Test worked." MAXPOSTS = 100 WAIT = 4 CLEANCYCLES = 10

r = praw.Reddit(obot.app_ua)

SEARCHTITLE = False SEARCHTEXT = True BOTNAME = 'LEGO_Dimensions_Bot'

print('Opening SQL Database for REPLYING TO COMMENTS...') sql = sqlite3.connect('sql.db') print('Loaded COMMENT database') cur = sql.cursor() cur.execute('CREATE TABLE IF NOT EXISTS oldposts(id TEXT)')

def replybot(): print('Searching %s.' % SUBREDDIT) subreddit = r.get_subreddit(SUBREDDIT) posts = list(subreddit.get_comments(limit=MAXPOSTS)) posts.reverse() for post in posts: # Anything that needs to happen every loop goes here. pid = post.id

    try:
        pauthor = post.author.name
    except AttributeError:
        # Author is deleted. We don't care about this post.
        continue

    if pauthor.lower() == BOTNAME:
        # Don't reply to yourself, robot!
        print('Will not reply to myself.')
        continue

    if KEYAUTHORS != [] and all(auth.lower() != pauthor for auth in KEYAUTHORS):
        # This post was not made by a keyauthor
        continue

    cur.execute('SELECT * FROM oldposts WHERE ID=?', [pid])
    if cur.fetchone():
        # Post is already in the database
        continue

    pbody = post.body.lower()
    if not any(key.lower() in pbody for key in KEYWORDS):
        # Does not contain our keyword
        continue

    cur.execute('INSERT INTO oldposts VALUES(?)', [pid])
    sql.commit()
    print('Replying to %s by %s' % (pid, pauthor))
    try:
        post.reply(REPLYSTRING)
    except praw.errors.Forbidden:
        print('403 FORBIDDEN - is the bot banned from %s?' % post.subreddit.display_name)

cycles = 0 while True: try: replybot() cycles += 1 except Exception as e: traceback.print_exc() if cycles >= CLEANCYCLES: print('Cleaning database') cur.execute('DELETE FROM oldposts WHERE id NOT IN (SELECT id FROM oldposts ORDER BY id DESC LIMIT ?)', [MAXPOSTS * 2]) sql1.commit() cycles = 0 print('Running again in %d seconds \n' % WAIT) time.sleep(WAIT)

Secondary Script - (obot) app_id = 'nAZxhUwCHUPJNg' app_secret = 'oDrotfsy_OV6M1SPBlJhjJ952Ww' app_uri = 'https://127.0.0.1:65010/authorize_callback' app_ua = 'ENTER_COOL_USER_HEREs PERSONAL BOT (v1.0)' app_scopes = 'account creddits edit flair history identity livemanage modconfig modcontributors modflair modlog modothers modposts modself modwiki mysubreddits privatemessages read report save submit subscribe vote wikiedit wikiread' app_account_code = 'J2cj4Lz3jqVBa7bv-9fzMBjCEzY' app_refresh = '49708569-Mtb-h7Y5oBgLPfp0RS9EoxWWN9k' import praw def login(): r = praw.Reddit(app_ua) r.set_oauth_app_info(app_id, app_secret, app_uri) r.refresh_access_information(app_refresh) return r

/r/redditdev Thread Parent