Commit Graph

234 Commits

Author SHA1 Message Date
Yizhe Shen c6ac55df9e Fix for TriviaTime.getTriviaCapability().
- Added list typecast which makes the 'in' keyword work as desired
2014-06-19 06:12:12 -04:00
Tanner cc1907e579 General minor improvements to text 2014-06-18 16:24:10 -05:00
Yizhe Shen ff9a735624 Minor fix in TriviaTime.next(). 2014-06-18 00:04:04 -04:00
Tanner eb4c2500e8 Convert tab to 4 spaces 2014-06-17 22:38:50 -05:00
Tanner e2e8592c0d Convert tab to 4 spaces 2014-06-17 22:34:06 -05:00
Tanner b9aa665364 Bug fix
Third time's the charm
2014-06-17 22:03:58 -05:00
Tanner 593148f4d3 Bug fix
for real this time ;)
2014-06-17 21:52:36 -05:00
Tanner 15014d4481 Bug fix 2014-06-17 21:47:40 -05:00
Tanner d49d24503c Improvements to skip; improved definitions; updated README
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
2014-06-17 21:41:15 -05:00
Yizhe Shen 4bae5dcc8c Created a TriviaTime.reply() method for fast replies.
- 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()
2014-06-15 18:01:33 -04:00
Yizhe Shen cec3f8af68 Modified TriviaTime.info() to work in PM. (issue #299)
- Also removed setting of -triviamod and -triviaadmin capabilities when
  TriviaTime.start() is called
2014-06-15 12:03:06 -04:00
Yizhe Shen 054bbb1663 Fix for issues #295, #300.
- Modified queries for Storage.removeUserLogs() and
  Storage.transferUserLogs() to use a channel parameter
- Transferring and clearing points are now channel-isolated
2014-06-15 11:28:07 -04:00
Yizhe Shen ad5a60a25a Partial fix for issue #295.
- Removed overriding of channel parameter in TriviaTime.givepoints() and
  TriviaTime.transferpoints()
2014-06-15 03:34:49 -04:00
Yizhe Shen 28cbb561b6 Allow stats commands to be used in PM. (issue #299)
- 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
2014-06-15 03:08:20 -04:00
Yizhe Shen 38950a2762 Minor change in TriviaTime.add().
- Changed it back to the old way of user checking since it wasn't an issue
  (same case as TriviaTime.addfile() with owner)
2014-06-14 16:25:17 -04:00
Yizhe Shen d520414339 Updated TriviaMod-only commands. (issue #300)
- Updated TriviaMod-only commands with the new capability checking methods
2014-06-14 16:08:12 -04:00
Yizhe Shen 8fe0faac8c Updated TriviaAdmin-only commands. (issue #300)
- Updated TriviaTime.clearpoints(), TriviaTime.givepoints() and
  TriviaTime.transferpoints() with new capability checking methods
2014-06-14 15:46:16 -04:00
Yizhe Shen 58cdb8117f Added custom capability checks. (issue #300)
- Added TriviaTime.isTriviaMod(), TriviaTime.isTriviaAdmin() and
  TriviaTime.getTriviaCapability() to allow better control over TriviaTime
  commands
- Updated TriviaTime.acceptdelete(), TriviaTime.acceptedit(),
  TriviaTime.acceptnew(), TriviaTime.add() and TriviaTime.authweb() to use
  the new capability checking methods
2014-06-14 15:32:37 -04:00
Yizhe Shen 3e31309985 Small change in TriviaTime.authweb().
- Set capability based on decreasing importance
2014-06-14 14:10:59 -04:00
Yizhe Shen 5462d30d83 Fixed TriviaTime.authweb().
- Replaced 'checkChannelCapability' with 'channel' from wrapper due to the
  existing (better) check within the method
2014-06-14 12:03:33 -04:00
Yizhe Shen 26a152c8b5 Fix for 'clear/give/transferpoints' commands.
- Added channel parameter, required for the switch to 'triviaadmin'
  channel capability
- Not a fix for issue #300
2014-06-14 06:42:01 -04:00
Yizhe Shen 98759fc8de Updated sanity checking for TriviaTime.start(). 2014-06-14 05:47:05 -04:00
Yizhe Shen 5ee70f33aa Minor changes.
- Some minor refactoring
- Moved 'start' command's start message into the constructor of Game to
  ensure that messages are sent out in the right order
- Channel capability checks are now only performed if the 'start' command
  actually starts a new game
2014-06-14 04:26:01 -04:00
Yizhe Shen 01825105d8 Modified some comments, refactored TriviaTime.stop(). 2014-06-14 02:35:38 -04:00
Yizhe Shen ad3fff361c Replaced bot messaging with irc.reply() for some methods.
- Replaced instances of irc.sendMessage() and irc.error() with irc.reply()
  in TriviaTime.stop(), TriviaTime.start(), TriviaTime.skip(),
  TriviaTime.repeat(), TriviaTime.next() and TriviaTime.time()
- Used the parameter 'prefixNick=False' in cases where the reply shouldn't
  include the caller's nick as a prefix
2014-06-13 09:40:11 -04:00
Yizhe Shen 5f79ef4688 Added Game.sendQuestion() method to clean up code.
- Eliminates code repetition in Game.nextQuestion() and
  Game.repeatQuestion()
2014-06-13 08:27:48 -04:00
Yizhe Shen ed378a7629 Updated 'time' and 'repeat' commands. (issue #299)
- 'time' command now responds in PM as well
- 'repeat' command is now in-channel only
- Moved sanity checking from Game.repeatQuestion() to TriviaTime.repeat()
  and added an extra check to see if the game is currently running in the
  channel
2014-06-13 08:01:47 -04:00
Yizhe Shen bd12e46731 Updated 'stop' command. (issue #299)
- 'stop' command only responds in-channel now
- Partial refactoring of stop()
2014-06-13 03:33:01 -04:00
Yizhe Shen c42aeebc99 More code refactoring.
- Updated 'next' command to use 'onlyInChannel' wrapper parameter
- Partial refactoring of next() and skip()
2014-06-13 02:02:41 -04:00
Yizhe Shen 0a1ed5cb37 Partial fix for issue #288.
- For registered users, the 'skip' command now stores the registered name
  of the user instead of the user's current nick
- Unregistered users still won't have tracking for 'skip' across different
  nicks
- Made skip() an 'onlyInChannel' command
- Partial refactoring of skip() method
- Small fix for kaosRemainingCommand
2014-06-13 01:16:25 -04:00
tannn d78fb7f966 Update version 2014-06-12 21:57:34 -05:00
Tanner ddc2149e16 Improve text, add triviaadmin to authweb
Test improved includes the authweb command description and error, along
with the error when using .next via message.
2014-06-12 21:26:10 -05:00
Yizhe Shen 747a8a6bcf Minor changes to start() method.
- Moved setting of channel capabilities until after the game is initialized
- Added 'onlyInChannel' wrapper parameter in start() method to replace the
  existing check and channel parsing
2014-06-12 07:41:43 -04:00
Yizhe Shen 0a15387783 Added auto-enforcement of TriviaTime channel capabilities. (issue #294)
- Whenever the 'start' command is issued in any channel, the game now
  checks to see if '-triviamod' and '-triviaadmin' are set as channel
  capabilities for that channel and sets them if they are not
2014-06-12 07:07:00 -04:00
Yizhe Shen b9170a7cc2 Updated command permissions and added channel capability. (issue #294)
- Updated command permissions as specified in issue #294
- Removed 'user' wrapper parameter for commands that required a higher
  capability
- Added new "triviaadmin" channel capability
- Added proper 'channel' wrapper parameter where required
- Modified user capability check for authweb() method
2014-06-12 04:11:53 -04:00
Yizhe Shen 7e17149555 Fix for issue #269.
- Added check to showround() to disallow usage for the current question if
  it is still in play
2014-06-10 20:32:04 -04:00
Yizhe Shen 53766b0347 Added 'by' info for shownew(). Removed 'Text:' from showround(). 2014-06-10 19:05:56 -04:00
Yizhe Shen 76aa2adf59 Fix for kaosRemainingCommand.
- Added check to make sure that the current question is a KAOS question
2014-06-08 23:43:19 -04:00
Tanner f75457bc4f General nitpicking 2014-06-04 17:07:24 -05:00
Yizhe Shen b8ea810d8f Added editor information to "showedit" and a couple of fixes.
- "showedit" command now displays who edited the question
- Fix for kaosRemainingCommand (syntax error)
- Fixed a typo in TriviaTime.addfile()
2014-06-03 22:44:58 -04:00
Yizhe Shen 78b9749015 Minor change for hint command.
Made the check for KAOS questions more robust.
2014-02-13 18:28:01 -05:00
Yizhe Shen 8e986df709 Fix for issue #261.
Lets the normal extra hint command also work for KAOS questions. Adds a
notice about this update to players who use the KAOS hint command.
2014-02-12 01:23:44 -05:00
rootcoma 602a63c932 Show points for today in recap. Fix deletegames 2014-01-13 02:03:09 -08:00
rootcoma 4632753155 Fix #0 this month 2014-01-06 17:29:03 -08:00
rootcoma 48aee817ae Add streak without adding to pointsAdded 2014-01-06 17:08:33 -08:00
rootcoma 14932826bc Adding streakbonus to pointsAdded 2014-01-06 01:46:27 -08:00
rootcoma 36b9812610 remove voice on right answer 2014-01-05 00:01:24 -08:00
tannn debd947bde Updating version 2014-01-04 22:26:44 -06:00
tannn 922434436d Update active in info 2014-01-04 22:24:35 -06:00
tannn c2eb0170e5 Don't add streak to the question's points
Fixes #270
2014-01-04 22:02:23 -06:00