ContriHUB / slack-bots

Slack bots written in go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prerequisites

Install go v1.20+ or higher
Join this slack space: click here

Setup of the project:

  • Fork the repository and then clone that forked repository.
  • Then install all the packages by running :
    go mod tidy
  • Now setup the following environment variables (Get tokens values from here):
SLACK_CUSTOM_APP_TOKEN=<custom app token>

SLACK_CUSTOM_BOT_TOKEN=<custom bot token>

SLACK_FILE_BOT_TOKEN=<file-bot-token>

CHANNEL_ID=<channel token>
  • Now run the application by using :
    go run main.go
  • Now go to slack space #genral channel there should be few files uploaded by the file-bot.
  • You can also use custom-bot commands in #genral channel :
    example :
   Input : @custom-bot my yob is 2002
   Output : your age is 21

   Input: @custom-bot hello
   Output: Hi, How are you??

About

Slack bots written in go.

License:MIT License


Languages

Language:Go 100.0%