Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ma91n/qiitawatcher
A BOT tool developed by Go that detects when a member belonging to a specific Qiita Organization has posted a blog post and notifies Slack
https://github.com/ma91n/qiitawatcher
golang qiita slack-bot
Last synced: 6 days ago
JSON representation
A BOT tool developed by Go that detects when a member belonging to a specific Qiita Organization has posted a blog post and notifies Slack
- Host: GitHub
- URL: https://github.com/ma91n/qiitawatcher
- Owner: ma91n
- License: mit
- Created: 2019-04-27T09:12:36.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-20T15:32:08.000Z (over 5 years ago)
- Last Synced: 2023-04-03T21:56:11.724Z (over 1 year ago)
- Topics: golang, qiita, slack-bot
- Language: Go
- Homepage:
- Size: 291 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# QiitaWatcher
Bot tool for search posts in the specified Qiita Organization and notify Slack.
# Output Examples
![](example_output.png)
# Configurations
| NAME | REQUIRED | TYPE | NOTES |
|--------------------|----------|--------------------|--------------------------------|
| QIITA_TOKEN | ○ | STRING | Qiita access token |
| QIITA_ORGANIZATION | ○ | STRING | Qiita Organization ID |
| CREATED | -- | STRING(YYYY-MM-DD) | Created date for qiita article |
| SLACK_TOKEN | ○ | STRING | Slack access token |
| SLACK_CHANNEL | ○ | STRING | Slack chanell |# Quick Start
1. generate watcher access token
* https://qiita.com/settings/applications
2. run application
```
$
$ export GO111MODULE=on
$ go mod init # only initialize
$ go mod tidy
$ go build
$ go run
```# Deploy Google Cloud Function
Deploy to GCP Cloud Functions(HTTP)
```sh
$ gcloud functions --project ${project} deploy main \
--entry-point Receive \
--runtime go111 \
--set-env-vars QIITA_TOKEN=${qiita token},QIITA_ORGANIZATION=${qiita organization},SLACK_TOKEN=${slack token},SLACK_CHANNEL=${slack channel} \
--trigger-http
```