# -*- coding: utf-8 -*-
import logging
import re
import time
from requests.exceptions import HTTPError, ConnectionError, Timeout

import praw
import yaml

import tipbot_action
from misc import checksum, price

# logging configuration
logging.basicConfig(filename="logs/tipbot.log", 
    format="%(asctime)s %(levelname)s: %(message)s", 
    datefmt='%m/%d/%Y %I:%M:%S %p', 
    level=logging.INFO)


class TipBot(object):

    def __init__(self):
        ymlfile = open('config/config.yml', 'r')