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

监听无效果 -- Ineffectiveness Monitoring #757

Open
Kewuaipao opened this issue Oct 2, 2022 · 1 comment
Open

监听无效果 -- Ineffectiveness Monitoring #757

Kewuaipao opened this issue Oct 2, 2022 · 1 comment

Comments

@Kewuaipao
Copy link

  • 对 Bug 的描述

    • 当前行为:监听无回复
    • 正确的行为:当监听过程中收到消息时,自动回复"Hello World"
  • 环境

  • 复现代码或 repo 链接

import werobot

robot = werobot.WeRoBot(token='tokenhere')

@robot.handler
def hello(message):
    return 'Hello World!'

# 让服务器监听在 0.0.0.0:800
robot.config['HOST'] = '0.0.0.0'
robot.config['PORT'] = 800
robot.run()

# 请在这里给出 bug 的复现代码。如有必要,可以创建一个复现 repo 并将链接粘贴到这里。
  • 复现步骤

  • 其他信息

@Kewuaipao
Copy link
Author

Kewuaipao commented Oct 2, 2022

监听设置800是因为80似乎已占用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant