Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nikepan/go-rtm2http-slackbot
This bot can receive direst RTM messages from slack, send it to http server and send reply to to slack user
https://github.com/nikepan/go-rtm2http-slackbot
bot gateway one-c slack slack-bot
Last synced: about 1 month ago
JSON representation
This bot can receive direst RTM messages from slack, send it to http server and send reply to to slack user
- Host: GitHub
- URL: https://github.com/nikepan/go-rtm2http-slackbot
- Owner: nikepan
- License: mit
- Created: 2016-03-13T19:00:41.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-03-02T10:20:23.000Z (almost 4 years ago)
- Last Synced: 2024-10-30T03:23:17.453Z (3 months ago)
- Topics: bot, gateway, one-c, slack, slack-bot
- Language: Go
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-rtm2http-slackbot
[![Build Status](https://travis-ci.org/nikepan/go-rtm2http-slackbot.svg?branch=master)](https://travis-ci.org/nikepan/go-rtm2http-slackbot)
[![download binaries](https://img.shields.io/badge/binaries-download-blue.svg)](https://github.com/nikepan/go-rtm2http-slackbot/releases)This bot can receive direst RTM messages from slack, send it to http server and send reply to to slack user.
It can translate slack user messages to 1C (example http://infostart.ru/public/581824/).Bot sends GET-queries to server url with params: **user**, **message** and **email**.
Set settings in config.json (you can use config.sample.json as example):
`"SlackToken": "xoxb-xxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxx"`
`"HttpPath": "http://127.0.0.1/slackbot/"`
You can take token at https://my.slack.com/services/new/bot
Bot can use basic http auth of http-server
`"BasicUser": "slackbot" // "" if no auth`
`"BasicPassword": "slackbot"`
Uses slack access package "github.com/nlopes/slack"