CoucouInc / lambdaCoucou

Industrial strength irc bot for more coucou
BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

Make a global salt level for every user #8

Open Polochon-street opened 6 years ago

Polochon-street commented 6 years ago

There should be a global level of salt (let's say for the example's sake: 1000) for all the users, divided equally among the chan's user (let's say we have 2 users, Paul and Pierre, then Paul's salt level will be 500 and Pierre's 500 as well)

Each user can see his own salt level by typing &salt (like the coucou level), and increase or decrease it by using salt += ... and the global salt level by typing &global_salt (this shouldn't change though). When you increase or decrease your personal salt, other people's salt resp. decrease or increase to preserve the global salt level. Salt levels could be floats, so that you can just divide the salt equally among people.

Maybe find a clever way to distribute the salt, like drag first the salt of people who never talk? I don't know.

Also, find a way to print somebody else's salt, like &salt Pierre, and all the salts in PV, like &salt_all. Maybe print pretty salt graphs somewhere, or at least make the salt levels accessible somewhere?