Skip to content

ContriHUB/slack-bots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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??

Releases

No releases published

Packages

No packages published

Languages