Skip to content

vghn/vbot

Folders and files

NameName
Last commit message
Last commit date
Feb 14, 2019
Feb 13, 2019
Dec 4, 2019
Oct 21, 2018
Jul 11, 2017
Mar 28, 2017
Jul 11, 2017
Feb 8, 2018
Feb 13, 2019
Dec 4, 2019
Jun 15, 2021
Feb 13, 2019
Dec 4, 2019
Dec 4, 2019
Jan 25, 2018

Repository files navigation

VBot

Build Status

Development status

This project is still in a prototype development stage.

Overview

VBot Slack App

Initially a NodeJS app based on https://github.com/johnagan/serverless-slack-app

Refactored later in Python on AWS Lambda with AWS API Gateway based on https://medium.com/devoops-and-universe/serverless-slack-bot-on-aws-vs-azure-getting-notified-instantly-ab0916393e1d for some of the Slack code and https://gist.github.com/andrewgross/8ba32af80ecccb894b82774782e7dcd4 for the Travis webhook

Requirements

  • AWS credentials present in .aws (for a user with "AdministratorAccess" policy)
  • SSM Parameters:
    • /vbot/SlackVerificationToken (secure string), used to verify slack requests
    • /vbot/SlackAlertsHookURL (secure string), used for slack posting in #alerts

Commands

  • bin/vbot help - Shows help
  • bin/vbot deploy - Deploys new version
  • bin/vbot deploy function_name - Deploys new version of a single function

The GET URL is used in https://api.slack.com/apps - VBot - Interactive messages, Slash Commands and OAuth & Permissions. The App needs to be installed by going to OAuth & Permissions - Install app to team

Contribute

See CONTRIBUTING.md file.

License

Licensed under the Apache License, Version 2.0. See LICENSE file.