Code Monkey home page Code Monkey logo

rocket-taco's Issues

Leaderboard for Global Stats

Currently have individual leader boards for each channel. Might be nice to have a leaderboard that aggregates stats over all rocket-taco channels on the server

README

Explain how to install and setup the bot.

Users Can Impersonate another User and Use their Tacos

E.g.

curl \ 
-d '{"bot":false,"trigger_word":":taco:","channel_id":"TJf7cJcJjZDj3kFct","channel_name":"channel","message_id":"5xEFvg23JzH7BSPNx","timestamp":"2019-07-27T21:18:35.319Z","user_id":"F9YKW787Y4bbtYuJu","user_name":"zac","text":":taco: @user"}' \
localhost:4567/taco?channel=channel

Possible Solution:

  • Server and integration script share a secret key
  • Integration script sends hash(taco_giver || taco_receiver || secret_key || timestamp) in the headers for requests to /taco
  • Server computes the hash and rejects the request if it doesn't match

Add Leaderboard Endpoint

Need a way to display the full leader board. Should be able to be sorted by time frame and channel.

Allow User to Specify FQDN

Currently assuming that the bot is on the same machine as the Rocket.chat server and using localhost when setting up the integrations.

Leveling System?

Direct message user when they hit specific thresholds for tacos given / received.
Add a !rank command to give you your total tacos given / received and level.

Possible Thresholds

Level Delta Tacos Total
1 10 10
2 15 25
3 20 45
4 25 70
5 30 100
6 35 135
7 40 175
8 45 220
9 50 270

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.