示例#1
0
__metaclass__ = type

from microsoftbotframework import MsBot
from tasks import *
import os

bot = MsBot()
bot.add_process(echo_response)
bot.run(port=os.environ['PORT'])
示例#2
0
from microsoftbotframework import MsBot
from tasks import *
from flask import Flask
app = Flask(__name__)

bot=MsBot()
bot.add_process(echo_response)

@app.route('/test')
def hello_world():
  return 'Hello, World!'

if __name__=='__main__':
    bot.run()
    app.run()
示例#3
0
__metaclass__ = type

from microsoftbotframework import MsBot
from tasks import *
import os

bot = MsBot()
bot.add_process(echo_response)
bot.run(port=int(os.environ['PORT']))