Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jcksnvllxr80/slack-age-bot
go tutorial to build a simple slack bot that calculates age based on dob given by user in a Slack channel or chat.
https://github.com/jcksnvllxr80/slack-age-bot
bot go golang slack slack-bot
Last synced: 23 days ago
JSON representation
go tutorial to build a simple slack bot that calculates age based on dob given by user in a Slack channel or chat.
- Host: GitHub
- URL: https://github.com/jcksnvllxr80/slack-age-bot
- Owner: jcksnvllxr80
- Created: 2022-04-10T19:39:58.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-04-11T02:56:45.000Z (over 2 years ago)
- Last Synced: 2024-06-19T16:45:27.050Z (6 months ago)
- Topics: bot, go, golang, slack, slack-bot
- Language: Go
- Homepage:
- Size: 3.73 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Slack bot in Golang to return age based on given birthdate in format YYYY-MM-DD
## Slack Bot in Action (today's date: 2022-04-10)
![alt text](./img/age-bot-example.png "Age-bot example")
## follow tutorial @2:20:55 in this video to configure the slack app
>- https://www.youtube.com/watch?v=jFfo23yIWac&t=22s
## Installation Notes:
1. mkdir slack-age-bot; cd slack-age-bot
2. go mod init github.com//slack-age-bot
3. go get "github.com/shomali11/slacker"
4. go mod tidy
5. change the name of the file in slack-age-bot/secrets/ directory from 'envvars.go.example' to 'envvars.go'
6. change the app token and the bot token in that file to be your values given by the sslack app configured
7. change the go mod init to your github as well as the package called in main.go for the secrets module