Giter Site home page Giter Site logo

chralp / heyburrito Goto Github PK

View Code? Open in Web Editor NEW
89.0 3.0 49.0 1.47 MB

Slack application HeyBurrito! :burrito:

License: MIT License

JavaScript 0.95% Dockerfile 0.12% TypeScript 98.79% Shell 0.14%
slack heyburrito slack-api scoreboard burrito reward-system nodejs mongodb

heyburrito's People

Contributors

chralp avatar dependabot[bot] avatar jamiewarb avatar tbleckert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

heyburrito's Issues

Overdraw burritos

New feature to enable overdraw daily given burritos. Sometimes you maybe want to give more burritos then 5. But not increase the daily burrito cap and create a burrito inflation :) . The new idรฉ is to set up av new form of cap ( overdraw cap ), where u can set it to maybe 5 and the overdraw burritos will be draw from the users own points.
Which means that a user can send ( in this case ) up to 10 burritos per day, but 5 of those will be drawn from the users own score.

General update of deps and code

  • - Change indent_size to 2, makes my eyes happier
  • - Update to node to Gallium
  • - Remove old deps and update deps
  • - Migrate to Jest from Mocha
  • - Fix test with mongodb as database
  • - Update Readme

Get user stats for given burritos to ?

Today we can get stats for who have been giving UserOne most burritos.
Can we to it the other way ? Do we want to do it the other way ?
Returning info of who UserOne have been giving must burritos / ruttenburritos to ?

Install third party themes

config.ts should install linked git repo if THEME is provided.
ex: process.env.THEME=https://github.com/tbleckert/cardi-burrito
System should check if project folder( cardi-burrito ) exists in www/theme/.
If cardi-burrito exists under www/theme, then set THEMEpath to www/theme/cardi-burrito
Else, download theme and set THEMEpath to www/theme/cardi-burrito

docker-compose.yaml - wrong environment variable listed for Slack emoji decrement

Awesome App!

Mostly an FYI for others, in the sample docker-compose.yml, the rottenburrito environment variable has INC instead of DEC. We did not catch it right away and thought it wasn't working with slack.

  - "SLACK_EMOJI_INC=:rottenburrito:"   ---->       - "SLACK_EMOJI_DEC=:rottenburrito:"

Also, just curious if there would be a way to capture the comments with the burritos that are given? When/if you click on the name of the person that gave the burritos, it would show the individual comments? We will look into it too. Thanks.

"Could not found bot heyburrito on slack account"

I just wanted to flag a small issue. With the BOT_NAME environment key set to heyburrito, and the options as shown in the below screenshot, the bot is unable to find the heyburrito bot on the slack account.

Changing Full Name from HeyBurrito to heyburrito fixes this. I would have expected that value to be anything, and not what is set in BOT_NAME, and instead BOT_NAME to relate to the bot account.

It may be worth clarification in the README to ensure these are the same value.

image

Level up system

New feature that enables level up / rank system.
The idea is when reach X amount of received burritos you level up and the your score starts over from 1.
Since its calculated in the code you will be able to jump between rank / level system or not without losing your total score.

Bootscript

Script should:

  1. Check THEME env, and install theme if necessary
    EX: If you start heyburrito with env THEME=https://github.com/tbleckert/cardi-burrito,
    script should then check if theme is installed,
    if installed => pull repo to get last => set theme ENV correct so heyburrito can load it
    else => install => set theme ENV correct so heyburrito can load it

Set endpoints for frontend.

Today these are accessible via socket io

on => getUserStats
emit => userStats
Result => Will return full user info with stats

2

on => getReceivedList
emit => receivedList
Result => Will return full list of all users with received stats ( orderd decending )
on => getGivenList
emit => GivenList
Result => Will return full list of all users with given stats ( orderd decending )

Fail to register burritos

Issue sometimes to register several burritos.
ex: @user ๐ŸŒฏ ๐ŸŒฏ ๐ŸŒฏ ๐ŸŒฏ ๐ŸŒฏ
heyburrito registers only 3-4 sometimes.

Name change

We want to changing the name of the application from heyburrito to something else. Since the application is not bounden to burritos. It was more a fun way to get this project started.
Drop some names and star the good ones.

Validation error

Validation crashes when updating / editing message sent.

/home/chralp/dev/chralp/heyburrito/app/lib/validator.ts:30
const selfMention = message.text.match(<@${message.user}>) ? true : false
^
TypeError: Cannot read property 'match' of undefined

negativ points

When received "too many" :rottenburrito: 's user gets negativ points.
Should always start and stop at 0.

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.