Code Monkey home page Code Monkey logo

ssstats-discord's People

Contributors

tommyrot avatar

Stargazers

 avatar

ssstats-discord's Issues

Separate smileys

Cause

There are 50 hardcoded smileys without ability to change their list without rebuild of the whole database and of course source modification, so users are in tight spot with this.

Proposition

  • remove long hardcoded regex
  • separate smiley logic to use small matches per smiley
  • move smileys to separate table in database for easier addition/removal
  • move smileys definitions with regexes to includable module of sorts, user modifiable

Random quotes

Cause

For inactive people with high lines count one last quote is used all the time which is, well, boring.

Proposition

Get X random quotes for each user on parsing stage, add them to DB and select random one on page generation.
This will increase DB size, but will produce more interesting combinations for top liners.
Reference database for ~9 months with 180k lines and ~800 different users is under 7.5Mb in size which is a low number even for in-memory operation on many channels.
Flag to store or not this information on parse stage may be an option to not inflate DB sizes for those not in need of this.

List user nicknames

Cause

Inconsistency of most used nick used by stats with user's wanted nickname.
This won't be fixed by original author and I wouldn't want to stray too far from his vision at this point in time: #https://github.com/tommyrot/superseriousstats/issues/9

Proposition

List most active nicks (5 maybe) on user page to help people distinguish each other when user.php is used for a stats site.
This information with nicks relation is already present in the DB so should be easy to do.

Improve stats by nick

Cause

People wanted to see more information about themselves on their personal pages.

Proposition

Add something meaningful from the database.
Should look into what's available and what will be met with joy.
Current draft:

  • days active X from Y
  • avg line length
  • smiles used
  • questions asked (percent, sum)
  • exclamations (percent, sum)

Rewrite 10 minutes distributions

Cause

Current implementation of 10 minute bins for higher precision uses the same logic author implemented with separate variable for each time slice and column in database.
This leads to long lists of variables and non-readable tables.

Proposition

  • Move from using variables to hours and minutes arrays.
  • Separate columns from current tables and views, make a new table with user id as a key (needs clarification on the date part).

Translation module

Cause

Currently all the text is hardcoded in files making it impossible to translate to different language without changing the code.

Proposition

Adopt i18n as a pretty much default way of working with translations.

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.