<commit_before>import time
import praw
import prawcore 
import requests
import Config
from bs4 import BeautifulSoup
responded = 0
footer = "\n\n*****\n\n^^^[Source](https://github.com/a-ton/gpd-bot) ^^^| ^^^[Suggestions?](https://www.reddit.com/r/GPDBot/comments/9o59m0/)"
reddit = praw.Reddit(client_id=Config.cid,
                     client_secret=Config.secret,
                     password=<PASSWORD>,
                     user_agent=Config.agent,
                     username=Config.user)
def check_price(s, u):
    print("Checking price")
    page = requests.get(u).text
    store_page = BeautifulSoup(page, "html.parser")

    # get current price
    temp = store_page.find("meta", itemprop="price")
    current_price = temp['content']

	# get full (normal) price
    try:
        full_price = store_page.find("span", class_="LV0gI").string
        if full_price != current_price:
            return False
    except AttributeError:
        return True

print("Monitoring inbox...")
while True:
    try:
        for msg in reddit.inbox.stream():
            expired = False
            oops = False
            responded = 0
            # checks if bot has already replied (good if script has to restart)<commit_msg>Will always mark self posts as expired<commit_after>import time
import praw
import prawcore 
import requests
import Config
from bs4 import BeautifulSoup
responded = 0
footer = "\n\n*****\n\n^^^[Source](https://github.com/a-ton/gpd-bot) ^^^| ^^^[Suggestions?](https://www.reddit.com/r/GPDBot/comments/9o59m0/)"
reddit = praw.Reddit(client_id=Config.cid,
                     client_secret=Config.secret,
                     password=<PASSWORD>,
                     user_agent=Config.agent,
                     username=Config.user)
def check_price(s, u):
    print("Checking price")
    if s.is_self:
        return True
    page = requests.get(u).text
    store_page = BeautifulSoup(page, "html.parser")

    # get current price
    temp = store_page.find("meta", itemprop="price")
    current_price = temp['content']

	# get full (normal) price
    try:
        full_price = store_page.find("span", class_="LV0gI").string
        if full_price != current_price:
            return False
    except AttributeError:
        return True

print("Monitoring inbox...")
while True:
    try:
        for msg in reddit.inbox.stream():
            expired = False
            oops = False
            responded = 0
            # checks if bot has already replied (good if script has to restart)
{'fraction_non_alphanumeric': 0.11769383697813121, 'fraction_numerical': 0.006361829025844931, 'mean_word_length': 2.4277929155313354, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2587803', 'n_tokens_mistral': 767, 'n_tokens_neox': 746, 'n_words': 183}