What?
KCNA Stream Bot is an internal app to the ACWP Slack designed to be triggered by ACWP Slack Users who want to know at any given time. Designed to be useful during events instead of frantic searching for streams. It will also be updated as these channels die or new ones come around.
How?
Triggered in Slack by using the /KCNA command.
Technical
A Flask app served with uWSGI and Nginx hosted on legendary.industries/streams.
Code
Maintained by @legendarypatman on the ACWP Slack. Ping a DM or @ message if you have questions or issues or get my contact details from my about page.
stream.py
#!/usr/bin/env python
from flask import Flask, jsonify, request
import os
import dotenv
dotenv_path = os.path.join(os.path.dirname(__file__), '.env')
dotenv.load_dotenv(dotenv_path)
verification_token = os.environ['VERIFICATION_TOKEN']
app = Flask(__name__)
@app.route('/streams', methods=['POST'])
def streams():
if request.form['token'] == verification_token:
payload = {'text': 'Known Good KCNA Streams \n 1. KCNA Watch. Flawless stream, If you have access. Sometimes behind the NK Pro paywall for events (https://kcnawatch.co/korea-central-tv-livestream) \n 2. North Korea Live. Very good track record over the years, though not always live or behind other streams (http://www.ustream.tv/channel/north-korea-live) \n 3. dprkyv. Worked for Juchefest 2018. Used just that one time (http://www.ustream.tv/channel/x9dWwuXe7fC) \n And a moment of silence for our fallen comrade 붉은별 TV (live 1), Channel of last resort which YouTube killed on us https://twitter.com/LegendaryPatMan/status/1116352787644919808'}
return jsonify(payload)
if __name__ == '__main__':
app.run()