EbayDeals-SlackBot

command module
v0.0.0-...-8f892f0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 29, 2020 License: MIT Imports: 4 Imported by: 0

README

goslackit

Go Report Card Codacy Badge

[BEW2.5] Fork this repo to begin the Slackbot goroutines challenge presented in class on Day 7.

Instructions

Follow this link in order to get the project set up.

My Notes - To Setup a Go Slack Bot

  1. Create a Slack App at https://api.slack.com/apps?new_classic_app=1
  2. Clone Dani's project or my project which does not have a go.mod and go.sum
  3. Set up Slack project
  • Add name, color, details
  • Give permissions the slack bot need in OAuth & Permissions
    • Important to click Add an OAuth Scope and
  • Install the app
  1. Install app to the workspace
  2. Get the bot token and put token in .env.sample like so
BOT_OAUTH_ACCESS_TOKEN="xoxb-471558618------"
  1. Create a .env file by running cp .env.sample .env which copies code in .env.sample to .env
  2. Run app with go build && go run main.go
  3. Add bot to a channel and try Reinstall App if it doesn't work

Documentation

Overview

DO NOT EDIT THIS FILE. This is a fully complete implementation.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL