Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

converted to PYTHON3 #1116

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 0 additions & 5 deletions jarvis.py
Expand Up @@ -12,22 +12,18 @@

app = Flask(__name__)


@app.route('/')
def about():
return 'Just A Rather Very Intelligent System, now on Messenger!'


@app.route('/process/')
def process():
return json.dumps(modules.process_query(request.args.get('q')))


@app.route('/search/')
def search():
return json.dumps(modules.search(request.args.get('q')))


@app.route('/webhook/', methods=['GET', 'POST'])
def webhook():
if request.method == 'POST':
Expand Down Expand Up @@ -62,6 +58,5 @@ def webhook():
else:
return 'Error, wrong validation token'


if __name__ == '__main__':
app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 5000)), debug=True)