old_contents: from flask import jsonify
  import json
  import urllib.request
  
  BASE_URL = 'http://localhost:9123'
  
  def make_post_request(path, quote):
  	data = {'quote': quote.to_json_dict()}
  	body = json.dumps(data).encode('utf-8')
  	url = BASE_URL + path
  
  	urllib.request.urlopen(url, body, timeout=1)
  
  def notify_bot(quote):
  	make_post_request('/qdb-update', quote)
  
new_contents: import json
  import urllib.request
  
  from qdb import app
  
  
  def notify_bot(quote):
  	data = {'quote': quote.to_json_dict()}
  	body = json.dumps(data).encode('utf-8')
  	url = app.config.get('IRCBOT_WEBHOOK_URL')
  
  	urllib.request.urlopen(url, body, timeout=1)
  
subject: update ircbot integration