Giter VIP home page Giter VIP logo

Comments (16)

kensykora avatar kensykora commented on September 26, 2024

+1, I do this all the time.

from nerdbot.

pb30 avatar pb30 commented on September 26, 2024

Someone will probably need to fork the karma script like we did for applause. We could also turn it off, but one could argue it's become part of the chat culture.

from nerdbot.

kensykora avatar kensykora commented on September 26, 2024

Maybe I just haven't seen it but I'd say making fun of nerdbot for getting -- wrong is more a part of the culture than the actual usage of that feature :)

from nerdbot.

pb30 avatar pb30 commented on September 26, 2024

That's certainly true, now it's taken on a life of it's own. Time to print up tshirts.

from nerdbot.

tvanfosson avatar tvanfosson commented on September 26, 2024

On our team we use ++ as "thank you" - I'd hate to see it go away. Probably should only apply after an "@" reference.

from nerdbot.

kensykora avatar kensykora commented on September 26, 2024

Just about ready to submit a pull request:

  • Requires an @ character at the beginning of the string
  • No longer allows a space in between the string and the ++ or --

One potential impact though is currently (cooltom) is No. 1 on the karma list:

screen shot 2014-09-24 at 8 43 39 am

Thoughts on how we should handle this? maybe allow paren strings as things that can get karma?

from nerdbot.

tvanfosson avatar tvanfosson commented on September 26, 2024

I would allow a space after the @ string since autocomplete adds one by default. I would be ok with a paren as well, but I don't think it's critical. Something like /(@[a-zA-Z0-9]+\s*)|(([a-zA-Z0-9]+))(++|--)/ would match (he says without actually trying it).

What would you think of restricting it to the start of the line?

from nerdbot.

kensykora avatar kensykora commented on September 26, 2024

start of line would make the most sense -- if it wasn't start of line and you allowed spaces between the name and ++/-- then you'd have cases where you have a string like:

hey @tvanfosson -- check this thing out

and it'd still trigger.

from nerdbot.

tvanfosson avatar tvanfosson commented on September 26, 2024

Or you could constrain the ++/-- to be the last thing on the line. That would be super simple and it's unlikely that we'd have any false positives. /(++|--)\s*$/

from nerdbot.

kensykora avatar kensykora commented on September 26, 2024

Interesting:

   robot.logger.warning "karma.coffee has merged with plusplus.coffee and moved from hubot-scripts to its own package. Remove it from your hubot-scripts.json and see https://github.com/ajacksified/hubot-plusplus for upgrade instructions"

Going to try and see if this one works better.

from nerdbot.

kensykora avatar kensykora commented on September 26, 2024

Related #7

from nerdbot.

chadmetcalf avatar chadmetcalf commented on September 26, 2024

Opinions on the merged plusplus script &/or Aaron's PR?

from nerdbot.

kensykora avatar kensykora commented on September 26, 2024

I honestly don't care that much, whatever is easiest and prevents it from picking up in normal chat when it's clearly not intended. I think PR #7 is a fine solution (only allow at beginning)

from nerdbot.

amarasco avatar amarasco commented on September 26, 2024

My bad, I didn't realize there was already discussion on this. I don't really care what the solution is, I just find the '--' thing really annoying.

from nerdbot.

kensykora avatar kensykora commented on September 26, 2024

np @amarasco -- I actually started working on a solution before I started diving down the node / hipchat rabbit hole for trying to test out the changes and got lost.

My vote is to accept PR

from nerdbot.

chadmetcalf avatar chadmetcalf commented on September 26, 2024

Merged PR #7.

from nerdbot.

Related Issues (11)

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.