예제 #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
파일: main.py 프로젝트: Ryan1102/lovelybot
__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']))