Yeah, "slam" seems a bit hyperbolic, if not click-baity.
Click the link and watch the video in the github read me.
It IS slamming the lid...
The sensor that detects whether the lid is closed works just as well whether you slam it shut or close it gently, so it's unnecessary to actually slam the lid.