Slack Bot for chat bot automation framework. And its specially developed for Devops / Release engineer.
- RTM based connection.
- Tightly coupled with shell script for remote execution.
- Parallel handling of task so each task has own thread.
- INI file based and dynamic configuration.
- Admin ID's for secure execution.
- Regex based reading.
- more..
./slackbot --config config.ini
Using dep package management tool
dep ensure
go build -o slackbot
Configuration sample file.
[main] #MAIN config
token = your-token #Get the token from slack app.
debug = false #Set true / false for debug option
command = job #Word to execute the shell script
shell = sh #Type of shell
[admin] #User ID's to work with bot
user1 = UFBJC6FB1 #User ID 1
user2 = UFBJC6FB8 #User ID 2
[chat] #Words/ Command to do so..
hi = Hello !!! #Normal word
do it = what to do???
job your ip = sleep 20 && curl ifconfig.me #Shell command to execute by words