Comments (5)
Counting :rep:
and :thumbsdown:
/:thumbsup:
should be great!
from cj.
I had some thoughts about an efficient way to do this with minimal polling and caching. Since there's no "react" gateway event as far as I know this is going to have to be manual and it's going to have some threshold of how long after a message has been created it stops being counted for reactions. From looking at general conversation, it seems about a 10 second window for messages should be fine, and we don't need to be super accurate with this sort of stuff - records can be fuzzy as I doubt users are keeping tally!
Now, on to how it could work:
Each message that comes in can have its message ID stored in a growing queue, every X seconds, all the items in this queue can have their reactions counted but only half of the items at the front of the queue are popped off (the oldest items).
This way, we have an overlapping, moving window across the dataset that ensures each message is checked twice during the window (this method has a name, I forgot it!)
I'll do a mock up of this once I've finished working on #18
(I've also removed the 'easy' tag from this as I realise it's going to need a bit more thought)
from cj.
I was thinking about a fun and simple little reputation system that could be used with the :rep: emote we have.
from cj.
That would be cool, I guess I completely forgot about this feature!
from cj.
Closed! This can be accessed via /rep [optional: emoji]
. Defaults to the emoji set in the config
from cj.
Related Issues (20)
- /stats command uses deprecated API link HOT 1
- let /rep take more than 1 emoji HOT 1
- A /mytop command to show user's rank.
- change /stats to something funny HOT 2
- add @coool9 as contributor HOT 1
- Support slash-commands HOT 1
- Dependabot can't resolve your Go dependency files HOT 1
- Dependabot can't resolve your Go dependency files
- Dependabot can't resolve your Go dependency files
- Dependabot can't resolve your Go dependency files HOT 1
- Dependabot can't resolve your Go dependency files
- add antispam features
- Show emoji in /toprep if no results found and an emoji parameter was passed
- /postcode command HOT 2
- Deploy credentials are expired/invalid HOT 1
- /changelog command to show recent changes
- Ability to download one's messages stored in cj's database
- Don't save bot messages.
- Don't show the commands that can't be used in the list
- /rep command doesn't work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cj.