I’m very confused on a lot of the logic used in this script…
!payactive will set the boolean to true if false… But if true it pays out and sets it to false? What’s the point of this exactly?
You don’t really need to hit the db every time someone sends a message, just set the value of active in the commands when you also set the value in the database.
And speaking of sending messages, why don’t commands count for someone being active?
And thirdly, your handling of checking messages is wrong. You’re checking if
message.contains('!')… Meaning if I were to type
GET HYPED!@!#$#@!$#!@$!, it wouldn’t count, as my message indeed contains a
I do like the idea, just slightly confused on some of this logic.