Giter VIP home page Giter VIP logo

golang-lab-slack-shakespeare's Introduction

Golang Boston Lab #3 - Building a Slack bot

Welcome to Boston Golang Lab #3 - Building a Slack bot

Format of this meetup:

  1. (10-15 minute) introduction to building bots in Slack

  2. (60 minutes) Choose your own adventure:

    • Go through the example weatherbot exercise

      or

    • Build your own slack bot (form teams of 2 or more!)

  3. (15 minutes) Battle of the bots! Show off what you've done

Prerequisites

  1. PLEASE BRING: A laptop with a Go language environment with Go 1.6 already set up. Please see 'Vagrant setup' below to get started with one easily.
  • If you are having trouble setting up your Go programming environment, please join the #lab-help channel in the Boston Golang Slack group. You can signup for the Slack group here.
  1. PLEASE BRING: A text editor or IDE suitable for writing Go code.
  • For beginners, Sublime is a good option. Make sure you install the Go plugin here.
  • For VIM users, there is a pretty nice VIM setup here.
  • If you'd like, you can also use the Vagant setup which has a Go environment set up (See VAGRANT_SETUP.md).
  1. PLEASE HAVE: Some basic Go language exposure. You should be familiar with the Go basics: e.g., Go's types, structs, control flow structures, goroutines, and channels.
    Other programming language experience and concepts (such as networking, etc) will be helpful. A good introduction to the basics of Go for people familiar with other programming language is available at: https://tour.golang.org. If you can get through this tour, you will be well-prepared for this meetup!

General setup

  1. Fork this repository in Github.

  2. Clone the repository into a directory

# open a terminal window and type:
$ git clone https://github.com/bostongolang/golang-lab-slack.git
  1. Sign up for a Slack account on our Slack group: http://bostongolang-slack-invite.herokuapp.com/

  2. Join the #bots channel on Slack with your main account (for communicating).

  3. Create a bot integration in Slack:

  4. Go to https://bostongolang.slack.com/apps/build/custom-integration

  5. Choose 'bots'

  6. Select a unique username to create your bot under, e.g. 'jenbot'

  7. Click 'Add bot integration to finish adding your integration' and view the settings to get the API key for your bot (required)

Labs

For beginners: weatherbot

Weatherbot responds to requests for the weather.

Build a Slack bot that responds to weather <zip code|name of place> and return the weather for the zip code.

Try it out now!

For advanced: build your own!

Ideas:

  • untableflip: resets a 'tableflip' emoji
  • TBD

golang-lab-slack-shakespeare's People

Contributors

andyhaskell avatar butterwell avatar grantseltzer avatar jandre avatar spenceronuffer avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

grantseltzer

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.