Skip to content
This repository has been archived by the owner on May 17, 2020. It is now read-only.
/ random-roles Public archive

🧹 A bot that notice to the slack channel about the roles of random clearning

Notifications You must be signed in to change notification settings

ega4432/random-roles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

random-roles

Overview

notification_demo

Notification of the clearning roles for tech lovers in Fukuoka ❀️

random-roles
.
β”œβ”€β”€ go.mod
β”œβ”€β”€ go.sum
β”œβ”€β”€ main.go
└── payload
    β”œβ”€β”€ attachment.go
    └── text.go

Usage

Installation

❯ go get -u github.com/ashwanthkumar/slack-go-webhook

Setting

After git clone , create a file .envrc and describe the following. You can find the Webhook's URL from https://slack.com/apps > Manage > Custom Integrations > Incoming Webhooks

export URL=https://hooks.slack.com/services/your/webhook's-url

Build

If you build with OS and Architecture environment variables according to your env you will run, you can generated a binary file. To specify a file name, execute the commnad with -o option. For example, if you want to generate with the name hoge : go build -o hoge main.go .

# Linux ( A binary file named "main" is output )
❯ GOOS=linux GOARCH=amd64 go build main.go

# macOS ( A binary file named "main" is output )
❯ GOOS=darwin GOARCH=amd64 go build main.go

# windowsOS ( A binary file named "main.exe" is output )
❯ GOOS=windows GOARCH=amd64 go build main.go

Run

In addition to executing the binary file generated earlier like this ./main , you can also execute the following command.

❯ go run main.go 

About

🧹 A bot that notice to the slack channel about the roles of random clearning

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published