新手指南:dvwa_如何构建基本的Slackbot:新手指南

本文是一份关于如何构建Slackbot的新手指南,解释了为何使用Slackbot(如团队通信、自动化任务),并提供了设置Python编程环境、创建Slack应用、编程机器人的步骤。教程涵盖了从发送预定消息到实现斜杠命令的功能。
摘要由CSDN通过智能技术生成

新手指南: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.

安装完成后,启动您的终端并输入pythonpython3 (如果您有多个安装),以确保其正常工作并存在。

Also check to see you have a good text editor for code: sublime and atom are great choices.

还要检查一下,看看您有一个不错的代码文本编辑器: sublimeatom是不错的选择。

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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值