Skip to content

This is a simple Slack-Bot written in Go that responds to a "hello" message with a greeting.

License

Notifications You must be signed in to change notification settings

pratu098/slack-bot-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slack-Bot in Go

This is a simple Slack-Bot written in Go that responds to a "hello" message with a greeting.

Requirements

Installation

  1. Clone this repository:

      git clone https://github.com/pratu098/slack-bot-go.git
    
  2. Install the dependencies:

      go mod download
    
  3. 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
    
  4. Start the bot:

      go run main.go
    

Usage

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.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

This is a simple Slack-Bot written in Go that responds to a "hello" message with a greeting.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages