没有合适的资源?快使用搜索试试~ 我知道了~
slouch:一个轻量级的Python框架,用于构建受cli启发的Slack机器人
共20个文件
py:11个
rst:3个
makefile:2个
需积分: 9 0 下载量 144 浏览量
2021-05-14
12:53:12
上传
评论
收藏 19KB ZIP 举报
温馨提示
伛 [在内部使用Venmo之外未得到积极支持] Slouch是一个轻量级的Python框架,用于构建受风格启发的Slack机器人。 这是一个使用Slouch构建的示例机器人: from slouch import Bot , help class PingBot ( Bot ): pass @ PingBot . command def pingme ( opts , bot , event ): """Usage: pingme [--message=<message>] Respond with an at-mention to the sender. Pass _message_ to include a message in the response. """ sender_slack_id = event [ 'user' ]
资源推荐
资源详情
资源评论
收起资源包目录
slouch-master.zip (20个子文件)
slouch-master
setup.py 1KB
.gitignore 675B
requirements.txt 224B
Makefile 219B
.travis.yml 173B
slouch
__init__.py 13KB
_version.py 22B
testing.py 2KB
LICENSE 1KB
example.py 3KB
README.rst 1KB
tests
test_handle_long_response.py 2KB
test_send_message.py 468B
conftest.py 172B
test_example_bot.py 2KB
context.py 166B
docs
Makefile 7KB
index.rst 1KB
conf.py 8KB
reference
api.rst 719B
共 20 条
- 1
资源评论
看不见的天边
- 粉丝: 20
- 资源: 4610
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功