tdmalone / working-plusplus Goto Github PK
View Code? Open in Web Editor NEWLike plusplus.chat, but one that actually works, because you can host it yourself 😉
License: MIT License
Like plusplus.chat, but one that actually works, because you can host it yourself 😉
License: MIT License
Currently, if you send eg.
@tim is awesome
and then edit it to read:
@tim++ is awesome
it will not be picked up. You'd have to write the latter as a new post.
It'd be nice to pick this up automatically.
But... would it be feasible? We'd need some sort of state management to avoid reacting again if the message was edited again.
Also, if someone edits a message to remove an action, should we undo it?
I installed on a local web server, but this is the only output. Not sure if it's related to npm module versions.
::ffff:x.x.x.x POST / Slackbot 1.0 (+https://api.slack.com/robots)
TypeError: Cannot read property 'trim' of undefined
at validateToken (/root/working-plusplus-master/src/app.js:52:22)
at handlePost (/root/working-plusplus-master/src/app.js:128:22)
at Layer.handle [as handle_request] (/root/working-plusplus-master/node_modules/express/lib/router/layer.js:95:5)
at next (/root/working-plusplus-master/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/root/working-plusplus-master/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/root/working-plusplus-master/node_modules/express/lib/router/layer.js:95:5)
at /root/working-plusplus-master/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/root/working-plusplus-master/node_modules/express/lib/router/index.js:335:12)
at next (/root/working-plusplus-master/node_modules/express/lib/router/index.js:275:10)
at /root/working-plusplus-master/node_modules/body-parser/lib/read.js:130:5
We'd love an option to reset the leaderboard, like PlusPlus, you DM the bot "leaderboard reset" and it wipes the slate clean.
Also, a silly question as I'm a bit new when it comes to stuff like this, but how would one make sure the Heroku is updated with the latest version?
Karma deduction for things is probably still ok, but it'd be nice to be able to disable negative karma in order to prevent... negative things from happening.
I've installed the app with Heroku, added the postgres addon, inserted the env variables for tokens and DATABASE_URL, and I'm able to get a response from @bot help
and even self plus, but after adding some logging, I see that postgres.connect()
hangs forever.
Am I missing something?
Split out from #18
We either:
help and leaderboard commands are case sensitive - so eg. ‘Leaderboard’ or ‘HELP’ are not recognised
Likely based on Slack groups.
Would likely need to retrieve the group and individually ++ everyone in it.
Possibly then with a quick response listing each person that was ++'ed? Scores probably not important.
Splitting this question out from #4.
how would one make sure the Heroku is updated with the latest version?
I’ve got mine directly authed to my GitHub account which obviously isn’t suitable for anyone else, and I’ve been meaning to look into what others do for this.
Need to work out a simple flow and then add it to the README.
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.