Welcome to Boston Golang Lab #3 - Building a Slack bot
Format of this meetup:
-
(10-15 minute) introduction to building bots in Slack
-
(60 minutes) Choose your own adventure:
-
Go through the example
weatherbot
exerciseor
-
Build your own slack bot (form teams of 2 or more!)
-
-
(15 minutes) Battle of the bots! Show off what you've done
- 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.
- 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).
- 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!
-
Fork this repository in Github.
-
Clone the repository into a directory
# open a terminal window and type:
$ git clone https://github.com/bostongolang/golang-lab-slack.git
-
Sign up for a Slack account on our Slack group: http://bostongolang-slack-invite.herokuapp.com/
- Log in at bostongolang.slack.com.
-
Join the #bots channel on Slack with your main account (for communicating).
-
Create a bot integration in Slack:
-
Go to https://bostongolang.slack.com/apps/build/custom-integration
-
Choose 'bots'
-
Select a unique username to create your bot under, e.g. 'jenbot'
-
Click 'Add bot integration to finish adding your integration' and view the settings to get the API key for your bot (required)
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.
Ideas:
- untableflip: resets a 'tableflip' emoji
- TBD