Commit Graph

22 Commits

Author SHA1 Message Date
Matthias Meusburger 80a482bc83 Adds kickMode :) 2012-09-06 17:47:48 +02:00
Matthias Meusburger 5830c4007e Use conf.supybot.directories.data to store scores and times 2012-09-05 13:20:22 +02:00
Matthias Meusburger 303fd221d8 Stop/start the scheduler before starting a hunt
Reset the basetime for the waiting time before the next duck
Adds the 'total' command
2012-09-04 17:30:01 +02:00
Matthias Meusburger 567c2a2a58 Adjusting default values for minthrottle and maxthrottle
Removing frequency, as it's kinda unneeded since scheduler is used
Updating documentation
2012-09-03 22:48:59 +02:00
Matthias Meusburger 942842d56e Since frequency, minthrottle and maxthrottle are channel configuration variables, let's handle them this way! 2012-09-03 21:31:53 +02:00
Matthias Meusburger c902f6c65e Ending the hunt has to be done asap when the _end function is called 2012-09-03 20:53:43 +02:00
Matthias Meusburger c32d16daf1 Uses an arbitrary 5 seconds delay between scheduler calls (instead of minthrottle) 2012-09-03 20:39:03 +02:00
Matthias Meusburger 1db3962c00 Uses supybot's scheduler instead of doPrivmsg.
This change was made in order to prevent the "The more people are talking in the channel, the more the bot launches ducks" behavior
2012-09-03 18:18:00 +02:00
Matthias Meusburger fa2f3eef0f Use supybot default success and error messages 2012-09-01 16:58:05 +02:00
Matthias Meusburger bd790b0b42 Adds stringified display for longest times (instead of showing just seconds) 2012-08-30 18:31:55 +02:00
Matthias Meusburger 1a50a5bb8e Adds the size parameter to the listscores and listtimes commands 2012-08-27 19:26:25 +02:00
Matthias Meusburger 203849a535 Fix longest time display bug at the end of a hunt 2012-08-27 18:12:40 +02:00
Matthias Meusburger cc762f6132 Update docstrings and add generated documentation 2012-08-24 12:31:29 +02:00
Matthias Meusburger 61fd7f80bd Change some display (be less verbose)
Shorten scores-list and times-lists to 5 elements
Sort scores of the hunt
2012-08-22 17:27:25 +02:00
Matthias Meusburger 0afd95324e Adds worst times
Adds minthrottle and maxthrottle as channel values
Adds extra points for a perfect hunt (all ducks shot by the same player)
Prevent error when a hunt is stopped and no duck has been shot
2012-08-09 12:38:51 +02:00
Matthias Meusburger 86cd7aed8c Use the 'admin' converter for the mergescores, mergetimes, rmscore and rmtime commands (instead of checking the capability in the code) 2012-07-21 15:07:43 +02:00
Matthias Meusburger f016a3bc1b Adds an optional channel parameter to the mergescores and mergetimes commands.
Also, use more precise wraps (channel and nick instead of anything)
2012-07-21 14:54:29 +02:00
Matthias Meusburger 43be7c99c2 Adds an optional <channel> parameter to rmtime, rmscore, listtimes and listscores
Separate scores calculation and writing (so that rmtime, rmscore, listtimes and listscores) are immedialely effective
2012-07-20 17:37:58 +02:00
Matthias Meusburger b76251f1e9 Rename merge command to mergescores
Add mergetimes, rmscore and rmtime commands
2012-07-20 12:22:43 +02:00
Matthias Meusburger 64c5b0fd5f Adds a lock when someone bangs, to prevent from lauching a duck at the same time 2012-07-20 12:20:14 +02:00
Matthias Meusburger 5e5049de50 Several modifications/improvements:
- Use threading
  - Send the duck directly without queuing, so times are more accurate
  - Adds comments
2012-07-19 17:31:30 +02:00
Matthias Meusburger 568678e253 First commit, the DuckHunt game for IRC 2012-07-17 20:59:22 +02:00