Commit Graph

177 Commits (deepcrayonfish)

Author SHA1 Message Date
Vincent Velociter 60b9e15b7d Add current ban to account info 2018-04-27 14:42:02 +02:00
Thibault Duplessis f0325f8474 playban streak 2018-04-13 09:15:31 +02:00
Thibault Duplessis 1bcbc3c757 use preset future booleans 2018-03-16 18:20:53 -05:00
Thibault Duplessis 5b83303f1b pause playban after server restart 2018-03-12 07:16:58 -05:00
Thibault Duplessis 378601c3db tweak playban feedback messages 2018-03-10 11:00:55 -05:00
Thibault Duplessis 29d54bdcfd playban immediate feedback
It warns players before they get playbanned,
if they chose to ignore the warnings.

But more importantly it informs their opponents
that measures are effectively taken against
bad sportmanship behaviours.
Hopefully they'll stop assuming otherwise and
complaining in public boards.
2018-03-10 10:58:00 -05:00
Thibault Duplessis 411ac03501 keep user email on close if they're currently playbanned - closes #3877 2017-12-10 12:12:30 -05:00
Isaac Levy c599a2b12b Don't record playban if in effect 2017-11-19 17:42:09 -05:00
Isaac Levy db566a23b6 Reduce playban penalty for aborts
Because Abort/NoPlay isn't as bad as staling
on last move.

6 aborts per 15 games will trigger initial playban
and subsequent playbans will trigger more easily.
2017-11-19 17:39:11 -05:00
Niklas Fiekas c2989f8c06 autoformat modules/playban/src/main/model.scala 2017-10-28 12:22:43 +02:00
Isaac Levy 17753a9aa7
playban safety check
only playban if latest outcome is bad
2017-10-27 15:09:58 -04:00
Thibault Duplessis ef461562c9 only legiferate when last outcome is bad 2017-10-25 22:53:10 -05:00
Isaac Levy 3de6f5483a Adjust playban cutoffs
- save 30 outcomes instead of 20
- for players with long history, trigger with 12 bad outcomes
  out of 30, instead of 10 bad outcomes in 20.
- reduce sitting cutoff to 5s per minute of initial clock.
- reduce initial playban to 10 min
2017-10-24 23:11:53 -04:00
Thibault Duplessis 8d7ed80cdc monitor expiration and playban 2017-10-22 18:14:35 -05:00
Thibault Duplessis d3c9827223 game automatic expiration proof of concept 2017-10-22 17:03:47 -05:00
Isaac Levy 6f870dfdea Scale playban linearly
And adjust ban durations and falloff.
2017-10-22 13:35:38 -04:00
Thibault Duplessis 425fe3fafa tone down playbans until abort system is rebuilt 2017-10-21 17:56:29 -05:00
Thibault Duplessis f6578bf696 tweak rounding /cc @isaacl 2017-10-21 17:50:41 -05:00
Thibault Duplessis 8c79c860cb remove unused imports with scalafix 2017-10-21 15:01:50 -05:00
Thibault Duplessis a85bffaf22 apply playban to tournaments 2017-10-19 23:02:55 -05:00
Thibault Duplessis 176db57f56 fix playban outcome DB mapping 2017-10-19 16:49:30 -05:00
Thibault Duplessis 16720cdb4f no longer count won games as favorable playban result
This makes the whole thing way stricter.
2017-10-18 18:26:38 -05:00
Thibault Duplessis 8e300ddb88 make sandbagging playbanable 2017-10-18 18:16:52 -05:00
Thibault Duplessis 5287b5b8df remove debug values 2017-10-18 14:03:57 -05:00
Thibault Duplessis f028c0f4eb implement SitMoving 2017-10-18 14:02:59 -05:00
Isaac Levy 2400da72b4 Prep for Steroids refactor 2017-10-09 11:28:33 -04:00
Thibault Duplessis 49ed0faeab tweak sandbag watcher 2017-09-12 01:10:33 -05:00
Thibault Duplessis 5863f9cfe2 improve alternative sandbag detection 2017-09-12 00:09:56 -05:00
Thibault Duplessis 15b8005ade alternative sandbag detection and auto-message 2017-09-12 00:09:56 -05:00
Thibault Duplessis 664804bc47 reformat (scalariform upgrade) 2017-08-23 18:56:39 -05:00
Thibault Duplessis ca527c5961 {master} playban up to 48h! 2017-08-18 07:39:39 -05:00
Thibault Duplessis 5ee8fa844d fix current playban detection 2017-08-05 10:36:06 +02:00
Thibault Duplessis bc7c114307 apply playban to mobile pools 2017-08-04 16:12:21 +02:00
Isaac Levy 4272f7a625 blame on NoPlay in tournaments
- Add Tournament to blameable sources.
- tweak threshold for sit detection
- save Outcome.Good when opp has a bad outcome.
2017-06-19 15:39:39 -04:00
Isaac Levy 7caed09799 game.updatedAt -> game.movedAt
Rename updatedAt field and make it required instead
of Option to simplify various logic.
2017-04-29 10:13:48 -04:00
Isaac Levy 571a3c9ce9 Remove lastMoveTime from reads/writes 2017-04-28 17:34:44 -04:00
Isaac Levy 2a9dd58a44 Use new scalachess clock
Depends on ornicar/scalachess#100
2017-04-23 13:24:34 -04:00
Isaac Levy 38d189be22 Record incomplete game for NoPlay sits
A blameable NoPlay should be very rare for a considerate
player, seems reasonable to ding people's completion rate
if they do this a lot.
2017-04-14 13:42:38 -04:00
Isaac Levy 67f45de1be adjust threshold scaling
max ban: 18hrs
increase factor: x3
2017-04-13 22:23:49 -04:00
Isaac Levy 5523403753 Increase max playban and degrade slower
Increase max playban to 24hrs -- this won't be reached without
repeated violations.

Degrade penalty slowly instead of resetting after 3 days.
2017-04-13 21:23:47 -04:00
Thibault Duplessis 0362ef20bb use scala.collection.breakOut to build short-lived hashmaps 2017-03-26 13:50:48 +02:00
Thibault Duplessis 4becc41b89 reduce game.lastMoveTime API and tweak Centis API 2017-03-23 12:40:35 +01:00
Thibault Duplessis 54cdf0ca65 reformat ALL the code, using sbt-scalariform 2017-02-14 16:34:07 +01:00
Thibault Duplessis ee1e881a18 remove dead code and unused imports 2017-01-15 13:26:08 +01:00
Thibault Duplessis 8ea41ab760 pool wip 2016-11-30 02:07:23 +01:00
Thibault Duplessis 8e2fa853e1 the BSON macro gets confused when data has several constructors 2016-10-24 11:40:31 +02:00
Thibault Duplessis 444521beee Revert "more playban"
This reverts commit f69d7a817c.
2016-09-29 21:07:05 +02:00
Thibault Duplessis 81905334be don't playban aborter if opponent is out of game 2016-09-07 19:33:24 +02:00
Thibault Duplessis f69d7a817c more playban 2016-08-29 14:09:38 +02:00
Thibault Duplessis 1f306c03ac stronger playbans 2016-08-27 14:35:32 +02:00
Thibault Duplessis 432d7e5152 don't apply playban rules to games with an engine user 2016-07-19 21:47:22 +02:00
Thibault Duplessis 1fb26fa331 display game completion rate on user profile 2016-07-18 12:44:54 +02:00
Thibault Duplessis f4b51c4b84 playban penalties for clock sitters
if running out of time after a tenth of the game total duration,
minimum 15 seconds maximum 3 minutes
2016-07-18 10:22:13 +02:00
Thibault Duplessis 8c6d8c5428 make all queries safer
use reactivemongo stopOnError=false by default, with new API uno/gather
2016-04-02 17:13:25 +07:00
Thibault Duplessis 67ef640094 more db code rewrite 2016-04-01 23:54:24 +07:00
Thibault Duplessis f0741267fb logging rewrite: part 2 2016-03-20 16:32:51 +07:00
Thibault Duplessis 321efc6498 reorganize logging 2015-09-01 02:37:28 +02:00
Thibault Duplessis 7cd7f9bcb7 fix many reactivemongo deprecation warnings 2015-07-14 12:17:36 +02:00
cchantep f0a4c156b2 Update to ReactiveMongo 0.11.2 2015-07-13 17:32:14 +02:00
Thibault Duplessis e7f95da003 fix previous commit 2015-06-21 16:52:10 +02:00
Thibault Duplessis 543d33af6c start playban at 10 minutes, instead of 5 2015-06-21 16:49:01 +02:00
Thibault Duplessis e60fc15408 playban now resets after 2 days, instead of 1 2015-06-21 16:48:27 +02:00
Thibault Duplessis 367f442d77 .exists is better than == 2015-06-11 11:49:59 +02:00
Thibault Duplessis 3d40bc7a6f remove playban logger 2015-04-28 08:44:26 +02:00
Thibault Duplessis d0a6c4d923 ignore rematch games in playban 2015-04-27 14:33:30 +02:00
Thibault Duplessis 1141132d39 fix infinite loop O__O 2015-04-27 14:31:34 +02:00
Thibault Duplessis 35a176b968 only log repeated playbans 2015-04-26 18:43:05 +02:00
Thibault Duplessis 38063cab0d extend playban to ragequitters 2015-04-26 13:21:35 +02:00
Thibault Duplessis b3e9941ffb extend playban to ragequitters 2015-04-26 13:04:22 +02:00
Thibault Duplessis 705e646103 enforce temporary play ban 2015-04-26 12:08:13 +02:00
Thibault Duplessis 056a9b8371 make playban more severe 2015-04-26 11:36:54 +02:00
Thibault Duplessis 5b0edda40a fix playban logging 2015-04-26 09:04:18 +02:00
Thibault Duplessis 4b6cdf0caa show playbans in user mod UI 2015-04-26 07:45:09 +02:00
Thibault Duplessis a502407b1d temporary disable playban effects 2015-04-26 00:11:06 +02:00
Thibault Duplessis 18929bfdfd more playban WIP 2015-04-26 00:11:01 +02:00
Thibault Duplessis cdf23799cd playban WIP 2015-04-25 23:06:44 +02:00
Thibault Duplessis c723fbd2ca playban WIP 2015-04-25 20:48:13 +02:00