slack-age-bot

command module
v0.0.0-...-6565b06 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2022 License: MIT Imports: 6 Imported by: 0

README

Slack Age Calculator Bot

This is a project built with Golang. A simple api bot where one can slack message your birth year and the bot will calculate the age.

Technologies Used

  • Golang
  • Slack

Dependencies

Executing program

  • Download the repository to your computer and go to project file
git clone https://github.com/sayedh/slack-age-bot
cd slack-age-bot
go mod init github.com/sayedh/slack-age-bot
go get "github.com/shomali11/slacker"
go mod tidy
code .
  • Add your Bot Token and App Token into the main.go code
os.Setenv("SLACK_BOT_TOKEN", "<insert here>")
os.Setenv("SLACK_APP_TOKEN", "<insert here>")

  • Add your Bot to your channel in slack

  • Run the code

go run main.go
  • Ask the Bot in Slack
Sayed Haque
@age-bot my yob is 1994


age-bot APP
age is 27

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL