benbariteau / dabopobo Goto Github PK
View Code? Open in Web Editor NEWa karmabot for slack
License: MIT License
a karmabot for slack
License: MIT License
A common mistake on autocorrecting keyboards is to convert "--" to "—" (em dash). Since a correct usage of an em dash includes no spaces on either side, the form "foo— " can be assumed to be this mistake rather than a legitimate usage of an em dash. We should support this mistake.
This is a pretty common practice, so I'm just gonna add it as feature.
Aliases should work when a user says "!karma_alias alias_id", a redis entry is created "alias:alias_id" -> "user_name_that_created_that_message"
And if a user messages with a username equal to that alias, it should remove it.
It allows for more channels (on one configuration), so it's much better. A bit more complicated though!
Right now the regex only allows for non-spaced identifiers, an identifier in parens, like "(butt stuff)++", should treat it as a single string (in that case "butt stuff").
If a user tries to change another user's karma more than once within a specific time period (10 seconds?), then it should be prevented.
If a user changes what karma is given to in a message edit, it's just ignored currently. Since the old message isn't returned, we'd have to cache sent messages and reverse them based on that content before adding the new karma.
Requires tracking how many ++s and --s, etc for each user.
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.