新手指南:dvwa
By Vishwa Shah
Vishwa Shah着
Update: code and tutorial updated on June 28 to reflect Slack API changes.
更新:代码和教程已于6月28日更新,以反映Slack API的更改 。
Slackbots:为什么要使用它们? (Slackbots: Why use them?)
Before we get into the tutorial part of this post, let’s take a look at why this can be a worthy project and tool.
在进入本文的教程部分之前,让我们看一下为什么这可以成为一个有价值的项目和工具。
Slack is an increasingly popular tool for team-wide communication. It’s grown to include plugins for other widely used project management tools, like JIRA, Google Drive, and the likes. Any slack user knows — the more you can do from within the conversation, the better.
Slack是用于团队范围通信的越来越流行的工具。 它已经成长为包括其他广泛使用的项目管理工具(例如JIRA,Google云端硬盘等)的插件。 任何闲散的用户都知道-您在对话中可以做的越多越好。
Common uses for a slackbot range from a simple notifier for when a task is complete (like a test build, or when your lunch is ready) to interactive, button-based bots that execute commands at the user’s will. You can build polling mechanisms, conversational bots, and more.
slackbot的常见用途包括从简单的通知程序完成任务(例如测试版本,或午餐准备就绪)到根据用户意愿执行命令的基于按钮的交互式bot。 您可以构建轮询机制,对话机器人等。
设置python编程环境 (Setting up a python programming environment)
If you’re a windows user and you haven’t used python before, you’ll need to install it. Linux/Mac users: Unix comes with python!
如果您是Windows用户,并且以前从未使用过python,则需要安装它。 Linux / Mac用户:Unix随附python!
Once installed, fire up your terminal and type python
or python3
(if you have multiple installations) to make sure it works and is there.
安装完成后,启动您的终端并输入python
或python3
(如果您有多个安装),以确保其正常工作并存在。
Also check to see you have a good text editor for code: sublime and atom are great choices.
还要检查一下,看看您有一个不错的代码文本编辑器: sublime和atom是不错的选择。
Optional: It might also be useful to work in a virtual environment — it’s good practice for when you have a lot of dependencies.
可选:在虚拟环境中工作可能也很有用-当您有很多依赖项时,这是一个好习惯。
pip install virtualenv
virtualenv tutorial
source tutorial/bin/activate
You should also fork the