Git Product home page Git Product logo

lita-karma's Issues

Provide a Ruby API

Commit to a public API for other Ruby code to perform all the same karma operations exposed through the chat interface.

Modifier counts unevenly upgraded

In examining the data dumped from my test Redis DB from both before and after I upgraded, I noticed that some modified:<term> keys were still plain SETs, not ZSETs.

This appears to have happened because there are modified:<term> keys for which there is no entry in the terms hash, and the keys of that hash are used to upgrade the modified:<term> SETs.

I don’t know how this might have happened in the course of normal operation, but if one of those terms was modified at a later date, I suspect Bad Things™ would occur.

Even though it is a performance drain, I think the safest option would be to get a list of modified:<term> keys and upgrade them, instead of relying on the list of terms being complete.

Slack @references are rendered as <@UNIQUEID>

When a user is referenced in a Slack message, it comes through in the body as <@uniqueid>. This causes lita-karma to work inconsistently on Slack.

Obviously, this can be fixed with a custom term_pattern to match it and a custom term_normalizer to look up the user. But I think the defaults should probably handle this case because it breaks the principle of least astonishment.

I’m going to dig into fixing it now.

Add colors to shell adapter

The shell adapter should have nice colors to help distinguish what the user is saying from what the bot is saying.

-- does not get stripped when linking terms

23:11:01 <corioliss> Litabot: internet += serious.business--
23:11:01 <@Litabot> serious.business: -1
23:11:01 <@Litabot> serious.business-- has been linked to internet.

Data loss since karma decay feature

@erikogan

After running this plugin on master for a while on a personal Lita instance, some data loss was incurred. Many terms were deleted completely that had quite a lot of karma. I'm not quite sure I see the pattern/commonality in the terms that were deleted, but terms with negative karma don't seem to have been affected.

I'm thinking about reverting the karma decay features, as I don't want to risk anyone using master and losing data. It might be more complex of a feature than it's worth, in the end. I thought I'd give you a heads up in case you want to look at it though.

For reference, the commit I'm running that had this problem is fd89aed.

Routes are added twice, at least during testing

Hi there! I'm looking at tweaking some behavior, and wanted to write test cases. But, something is amiss. Most of the tests fail, because the command is executed twice. Digging a bit, I see the routes are generated twice.

I suspect something has changed in the last 11 months since your travis run, because if I just fork this, travis produces the same errors for me, as I get on my local host.

Though I did need to update travis to work around a bug. directionless@0b19d2e4c is the commit that does so.

https://travis-ci.org/directionless/lita-karma/builds/108911896 is my fork's failure. I don't think anything I did should cause that, and I suspect you'll see the same thing. directionless@6983d3f is a simple rspec file

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.