Commit Graph

546 Commits

Author SHA1 Message Date
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 38a2bdc1ee Merge pull request #298 from tannn/master
Update readme
2014-06-12 22:04:27 -05:00
Tanner 1aa0bc0bd4 Update readme for v1.03 2014-06-12 22:02:30 -05:00
tannn 3c7a688e50 Merge pull request #297 from tannn/testing
v1.03
2014-06-12 21:58:22 -05: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
tannn 962c1d5f0a Merge pull request #293 from tannn/testing
Testing to master
2014-06-04 17:23:20 -05:00
Tanner d4b72a3926 Improve update instructions 2014-06-04 17:21:47 -05:00
Tanner f75457bc4f General nitpicking 2014-06-04 17:07:24 -05:00
tannn 6f55f2b152 Merge pull request #292 from tannn/testing
Merge
2014-06-03 23:29:26 -05:00
tannn c8e25c43cd Merge pull request #290 from brrr2/showeditor
Added editor information to "showedit" and a couple of fixes.
2014-06-03 23:24:21 -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
tannn b60459a3fc Merge pull request #286 from Cydrobolt/patch-2
get rid of unneeded padding
2014-02-15 19:30:23 -06:00
tannn 26929477f1 Merge pull request #285 from Cydrobolt/patch-1
Push footer to bottom of the page
2014-02-15 19:29:55 -06:00
Cydrobolt 518aa01f6a get rid of unneeded padding
the padding creates ugly whitespace at the end of the document, after the footer
2014-02-15 20:21:55 -05:00
Cydrobolt a39b043307 Push footer to bottom of the page
There isn't enough content on this page, so the footer is just simply hanging there. Pushed it to the bottom. Remove the <style> css after you add enough info.
2014-02-15 20:15:44 -05:00
tannn 4bd044ee64 Merge pull request #284 from brrr2/hint-alias-pr2
Minor change for hint command.
2014-02-13 17:37:38 -06: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
tannn f30c115e58 Merge pull request #283 from brrr2/hint-alias-pr
Fix for issue #261.
2014-02-12 19:40:01 -06: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
tannn 6a6eeb09e2 Merge pull request #281 from rootcoma/logging
Show points for today in recap. Fix deletegames
2014-01-13 06:30:32 -08:00
rootcoma 602a63c932 Show points for today in recap. Fix deletegames 2014-01-13 02:03:09 -08:00
tannn 11ae84a480 Merge pull request #278 from rootcoma/logging
Fix #0 this month
2014-01-06 17:30:21 -08:00
rootcoma 4632753155 Fix #0 this month 2014-01-06 17:29:03 -08:00
tannn 9be9c5e517 Merge pull request #276 from rootcoma/logging
Adding streakbonus to pointsAdded. I'll try another workaround another time.
2014-01-06 17:17:31 -08:00
rootcoma 48aee817ae Add streak without adding to pointsAdded 2014-01-06 17:08:33 -08:00