- Improves overall code readability by replacing indices with keys
- Updated Storage constructor to set DB connection row_factory to
sqlite3.Row
- Updated Storage.getByID(), Storage.getTop3() and Storage.getQuestion()
methods to return sqlite3.Row objects
- Affects 'list', 'show', 'accept' and 'rm' commands
- Replaced some if statements with ternary expressions where apprpriate
- Updated Storage.getTop3() methods to take in channel parameter to pass
into queries
- Updated 'list' commands to only show reports for the specified channel
when not in 'globalstats' mode
- Moved Storage.getEditTop3() to a more logical location
- Reverted functionality back to original state after breaking with the
introduction of TriviaTime.getUsername()
- Still does not properly convert nick into username
- Both methods now return dicts
- getUser() no longer appends the results of getUserRanks()
- Updated calls with new usage
- Added some comments for readability
- Renamed Storage.getUser() to Storage.getUserStat()
- Renamed Storage.getUserRanks() to Storage.getUserRank()
In plugin.py:
* Updated version
* created getTimeLeft
* Changed next() message
* Changed regex message when reporting
* Changed restore question messages
* Included timeSeconds when inactive users try to skip
* Included skipSeconds when a user tries to skip again
In config.py:
* Updated skipActiveTime definition to include seconds
* Improved skipTime, quizfile, showstats, skipTime, hintTime, hintKAOS,
waitTime, enableVoice, timeoutVoice, nextMinStreak, skipThreshold,
definition
In README.md:
* Added that restarting isn't required
* Added update instructions for v1.04
* Fixed typo
- Added a method comparable to irc.reply() for TriviaTime purposes
- Replaced irc.reply() with self.reply() in instances where message
queuing disrupts their order (ie. where irc.sendMsg() would be used)
- Minor changes to TriviaTime.repeat()
- Modified queries for Storage.removeUserLogs() and
Storage.transferUserLogs() to use a channel parameter
- Transferring and clearing points are now channel-isolated
- Added an optional 'channel' parameter to all stats commands to allow
usage in PM
- Affects TriviaTime.day(), TriviaTime.week(), TriviaTime.month(),
TriviaTime.year(), TriviaTime.me(), TriviaTime.stats()
- Minor editing of message output for those commands
- Edited some command documentation