ucsf-education / uctech-greeter Goto Github PK
View Code? Open in Web Editor NEWA bot that welcomes new users to the UCTech team on Slack.
License: MIT License
A bot that welcomes new users to the UCTech team on Slack.
License: MIT License
probably not needed if foreman runs the app in "worker" mode.
This block of code is not covered by the tests.
When running npm test
:
****************************************************************************************
* WARNING: Your bot is operating without recommended security mechanisms in place. *
* Initialize your Botkit controller with a clientSigningSecret paramter to enable *
* verification that all incoming webhooks originate with Slack: *
* *
* var controller = new Botkit.slackbot({clientSigningSecret: <my secret from slack>}); *
* *
****************************************************************************************
The event fires, but new users do not receive new messages from the greeter upon account creation.
I've described this issue in detail here: http://stackoverflow.com/questions/38861714/how-can-i-post-a-welcome-message-to-a-newly-joined-user-via-a-slack-bot
a custom command will do.
/welcome-message
should print out the welcome text.
as the title says.
add a paragraph to the welcome message.
that would be botkit v4.
right now, the bot and the express app both reside in the index.js
file.
separate these out.
revisit the worker vs web definitions in the Procfile
.
follows #1
publish this thing to NPM while at it.
so instead of /welcome-message
, perhaps have the bot respond on @greeterbot welcome
, or the likes.
benefits:
downsides:
it's been a while, do it.
$ npm outdated
Package Current Wanted Latest Location
app-root-path 2.2.1 2.2.1 3.0.0 uctech-greeter
botkit 0.5.8 0.5.8 4.6.2 uctech-greeter
dotenv 4.0.0 4.0.0 8.2.0 uctech-greeter
eslint 4.19.1 4.19.1 6.8.0 uctech-greeter
Saying something like @greeterbto: what are the rules?
should respond with the code of conduct.
add a section about the custom command /welcome-message
endpoint in the README file.
Replace dummy text in welcome.txt
with actual contents.
https://github.com/stopfstedt/uctech-greeter/blob/master/welcome.txt
These basic formatting options can be applied.
Botkit appears to have been abandoned.
We're locked in to Node 14 due to some old upstream dependencies in one (or more) Botkit related building blocks.
Consider using https://www.npmjs.com/package/@slack/bolt as a replacement.
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.