自定义bot框架web ch

2024-06-16 13:53:28 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经克隆了MicrosoftBot框架WebChatRepo并能够构建它。但是我很难看到我所做的改变。你知道吗

npm start

在本地端口上启动服务器,但不显示webchat。而是显示项目中的文件。我对Angular有点熟悉,但对React一点也不了解。我有一个基于Python的bot,并在Azure的bot通道注册中注册。你知道吗

如何在本地启动webchat以查看我所做的更改?你知道吗


Tags: 文件项目端口服务器框架npmbotazure
1条回答
网友
1楼 · 发布于 2024-06-16 13:53:28

假设您将示例留在本地计算机上的repo中,那么您需要转到localhost:8000/samples/{sample name}或从您看到的文件中单击适当的路径。你知道吗

在react示例中,is也这样说:

  1. Build the project: "npm run build"
  2. Start a web server: "npm run start"
  3. Aim your browser at "http://localhost:8000/samples?[parameters as listed below]"

  For ease of testing, several parameters can be set in the query string:
    * s = Direct Line secret, or
    * t = Direct Line token (obtained by calling Direct Line's Generate Token)
    * domain = optionally, the URL of an alternate Direct Line endpoint
    * webSocket = set to 'true' to use WebSocket to receive messages (currently defaults to false)
    * userid, username = id (and optionally name) of bot user
    * botid, botname = id (and optionally name) of bot

相关问题 更多 >