This is a simple Slack-Bot written in Go that responds to a "hello" message with a greeting.
- Go (version 1.16 or higher)
- A Slack account and a Slack Bot Token and a Slack App Token
-
Clone this repository:
git clone https://github.com/pratu098/slack-bot-go.git
-
Install the dependencies:
go mod download
-
Set your Slack Bot Token and Slack App Token as an environment variable:
export SLACK_APP_TOKEN=your_slack_app_token export SLACK_BOT_TOKEN=your_slack_bot_token
-
Start the bot:
go run main.go
To use the bot, simply send a message containing the word "hello" to the channel where the bot is located. The bot will respond with a greeting.
This project is licensed under the MIT License - see the LICENSE file for details.