onebeyond / bamboohrbot Goto Github PK
View Code? Open in Web Editor NEW๐ค Bot to publish BambooHR notifications (company holidays, work anniversaries, birthdays, and who is at the office) to slack each weekday.
๐ค Bot to publish BambooHR notifications (company holidays, work anniversaries, birthdays, and who is at the office) to slack each weekday.
We're using slack webhooks to publish to slack.
However, asl slack states:
Please note, this is a legacy custom integration - an outdated way for teams to integrate with Slack. These integrations lack newer features and they will be deprecated and possibly removed in the future. We do not recommend their use. Instead, we suggest that you check out their replacement: Slack apps.
So we should change how we publish to slack.
When publishing to slack, we only take into account the day of the week.
eg. if it's Monday, we publish the events for Tuesday. But we don't take into account if the day we're publishing the message or the day that the message refers to is bank holiday.
The publisher method takes care of:
For better testing and and consistency, we should split the logic in two different methods:
As part of the celebration message, we should be able to provide a list of ephemeris, so they are shown along with birthdays and anniversaries.
e.g. 13th September - Programmers day
Set a new env variable or file to set date and comment for that date (similar to bamboohr for birthdays)
A user suggested in this slack thread that it would be interesting to have the possibility to publish the same event in several slack channels.
This feature would be useful so for example, Bank Holidays can be published both in a Company internal channel for the employees and in a slack channel shared with clients, so they are automatically informed about the Company Bank Holidays.
Just support an array of webhooks in the env variables.
Sorry @inigomarquinez my comment was misplaced. The guide I was asking about is related to this environment variables. Where can all these variables be retrieved from?
Originally posted by @totegsito in #21 (comment)
Only a couple of methods have been tested yet.
The test suite should be improved and perhaps the coverage should also be included.
@Betisman and @totegsito suggest publishing an inspiring quote every day along with the celebrations message.
We could use a service like this one
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.