dali-lab / slack-hrbot Goto Github PK
View Code? Open in Web Editor NEWHR Slack integration
HR Slack integration
is 12pm on monday still considered the week before? why did it send the report for week 8 instead of 9?
fix the splice operator to get the correct list of people the message was sent to
user asks "show hours" but has never put in a time, so this error is returned.
2017-02-27T16:20:37.179346+00:00 app[web.1]: Received: message danah.han danah.han 1488212436.000009 6 hours
2017-02-27T16:20:37.182712+00:00 app[web.1]: contacted by: danah.han, danah.han, 6 hours
2017-02-27T16:20:37.186233+00:00 app[web.1]: Error while fetching users: TypeError: Cannot read property 'isBefore' of undefined
this line?: https://github.com/dali-lab/slack-hrbot/blob/master/web.js#L348
@timofei7 any help on this one? looks like it's related to the mongo db. it's happened to jessie and danah. maybe this is first contact so they're not in the db yet? i slacked them asking for details of what happened.
using the show hours command when the user is not in the 16s spreadsheet (i.e. hasn't put in hours this term) fails
2017-02-26T16:02:25.207714+00:00 app[web.1]: getting id for mr-tron: U1LCEURT2
2017-02-26T16:02:25.299070+00:00 app[web.1]: /app/web.js:169
2017-02-26T16:02:25.299074+00:00 app[web.1]: ^
2017-02-26T16:02:25.299073+00:00 app[web.1]: channel.send(msg);
2017-02-26T16:02:25.299076+00:00 app[web.1]: TypeError: Cannot read property 'send' of undefined
2017-02-26T16:02:25.299075+00:00 app[web.1]:
2017-02-26T16:02:25.299077+00:00 app[web.1]: at /app/web.js:169:16
2017-02-26T16:02:25.299078+00:00 app[web.1]: at IncomingMessage.<anonymous> (/app/node_modules/slack-client/src/client.js:689:22)
2017-02-26T16:02:25.299077+00:00 app[web.1]: at /app/node_modules/slack-client/src/client.js:228:58
2017-02-26T16:02:25.299084+00:00 app[web.1]: at emitNone (events.js:91:20)
2017-02-26T16:02:25.299085+00:00 app[web.1]: at IncomingMessage.emit (events.js:185:7)
2017-02-26T16:02:25.299085+00:00 app[web.1]: at endReadableNT (_stream_readable.js:974:12)
2017-02-26T16:02:25.299086+00:00 app[web.1]: at _combinedTickCallback (internal/process/next_tick.js:74:11)
2017-02-26T16:02:25.299087+00:00 app[web.1]: at process._tickCallback (internal/process/next_tick.js:98:9)
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.