#!/usr/bin/env python
# encoding: utf-8

import logging
import time
import os
import sys
from datetime import datetime
from contextlib import suppress

import requests
from pymongo import MongoClient
from bson.objectid import ObjectId
from steem.blockchain import Blockchain

logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO)
log = logging.getLogger(__name__)

mongo_uri = os.getenv('MONGO_URI', 'mongodb://localhost:27017/steem_notifier')
telegram_token = os.getenv('TELEGRAM_TOKEN')
mailgun_domain_name = os.getenv('MAILGUN_DOMAIN_NAME')
mailgun_api_key = os.getenv('MAILGUN_API_KEY')
steem_wallet = os.getenv('STEEM_WALLET', 'null')