mirror of
https://github.com/pragma-/pbot.git
synced 2025-02-23 09:01:09 +01:00

Refactored ridiculous large per-round/per-question state transitions and subroutines into a much more manageable and simpler state machine. Now can easily and trivially adjust maximum rounds and maximum questions by editing $self->{game} hashtable entries. TODO: make this configurable via `spinach set`. Replaced "/msg me" with "/msg $botnick" throughout. Adjusted lie validation: * If all words of lie are found within solution and word-count of lie is less than word-count of solution, then game will say "So-and-so has found part of the truth!" * If lie is 20%-or-less different to the solution, then game will say "So-and-so has misspelled the truth!"