Greeny helps you to create your own garden on GitHub ๐
- Green was born !
- Greeny learned how to scrape your commit count :)
- successly complete to make 'Greeny' MVP
- Greeny can be heard your message!
- Greeny's codes were arranged !
- Create a new bot integration
- Copy API Token
- Add your
bot
in your Slack Channel
npm install
touch .env
vim .env
Don't include Square brackets
TOKEN=[your Bot API Token]
main.js
const botScope = [
'direct_message',
'direct_mention',
'mention',
'ambient'
];
Absolutely you can reset these users
const users = [
'well-balanced',
'indante',
'incleaf'
];
ex) 00 30 15 * * 1-5: PM 3:15 every Mon ~ Fri
new cronJob('00 00 00 * * *',async()=>{
scrape.getCounts(users)
.then(counts => {
return scrape.formatFailMessages(counts,users)
})
.then(messages => {
sendMessages(messages)
})
},null,true,"Asia/Seoul")
bot.startRTM(function(){
bot.say({
text: 'Greeny works!',
channel: 'bots-playground'
})
});
npm start