Skip to content

Poonam-13/Slack-Bot-Age-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slack-Bot-Age-Calculator 🖩

Slack-Bot is a communication tool used by developers and companies to share information and communicate. It has grown very popular in recent years.

In this Golang project , we’re building a slack bot that calculates age. To calculate a person’s age in years we just have to take the difference between the current year and their birth years.

Table of Contents

Installation ⚙️

1.Clone the repository: git clone : https://github.com/Poonam-13/Slack-Bot-Age-Calculator.git

2.Connecting to Slack from Golang:

mkdir slack-bot

cd slack-bot

go mod init 
  1. Install the required dependencies:
go get github.com/slack-go/slack

go get -u github.com/poonam-13 
  1. Set up a new Slack app and obtain a bot token. You can create a new Slack app at api.slack.com/apps.

  2. Update the config.yaml file with your bot token.

  3. Build and run the application:

go run main.go

  1. Invite the bot to your Slack workspace and channel.

Usage 🔥

  1. In your Slack workspace, invite the bot to a channel by mentioning the bot using the designated bot username.

  2. In the channel, you can use the following command to calculate the age of a person:

/agecalc [date of birth] /agecalc 1990-01-01

The bot will respond with the calculated age.

Contributing ✨

Contributions are welcome! If you'd like to contribute to the project.

Acknowledgements

This project utilizes the Slack API and the slack-go library. See the Slack API documentation and slack-go repository for more information.

🔗Connect with me: 📞

If you have any questions, feedback, or suggestions, please feel free to reach out:

poooo_13 pooo13 #0888

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages