xnrand
4e6f2cc452
Make !goat goatier
...
In the light of recent events in video games (goat simulator), the goat needs to be made more goaty.
2014-04-26 03:11:04 +02:00
Cydrobolt
b10e973f39
!v, another useful shortcut
2014-04-25 18:06:19 -04:00
nyuszika7h
18f0084499
Remove legacy !fdel alias
2014-04-25 21:42:20 +02:00
Cydrobolt
c05d1f5186
!j command to join a game
2014-04-25 15:38:46 -04:00
nyuszika7h
470b3092c3
Merge branch 'master' of github.com:lykoss/lykos
2014-03-27 15:59:09 +01:00
nyuszika7h
f7a0878d03
Add !ops (alias for !admins)
2014-03-27 15:58:45 +01:00
jacob1
dd0edb0a77
wolves can retract votes, and drunk can be cursed
2014-03-24 20:50:12 -04:00
nyuszika7h
1aa8641102
Minor cosmetic fix for exceptions in !pull
...
A space was missing after the colon following the exception name.
2014-03-22 12:19:17 +01:00
Yizhe Shen
4d6a3dc71f
One more fix for issue #4 .
...
Fix to ensure that the reapertimer thread terminates when the game ends
even if disk lag is encountered. This should be the final fix required for
issue #4 .
2014-03-22 01:21:27 -04:00
Yizhe Shen
e0f598a2b0
Additional fix for issue #4 .
...
Moved timer resets with mode resets. Solves the problem of extra
messages being sent after a game ends caused by disk I/O lag.
2014-03-06 08:45:02 -05:00
nyuszika7h
a9cb639378
Attempt to actually fix !stats in PM
2014-03-02 21:45:39 +01:00
nyuszika7h
37606dde4f
Add !ping in PM (always replies pong)
2014-03-01 11:45:41 +01:00
nyuszika7h
7439aa8f7b
Fix previous commit
2014-03-01 11:44:20 +01:00
nyuszika7h
8e0468c5d4
Make !ping reply 'Pong!' in-game
2014-03-01 11:40:54 +01:00
nyuszika7h
b5eea0a8a1
Actually disable rate limit, as setting it to 0 doesn't work
2014-02-24 10:48:47 +01:00
Tobias "ToBeFree" Frei
63753e2416
Remove inconsistent bold for "Players:" (wolf)
...
Thanks to jacob1 for pointing out this issue! :-)
If you find more like this, report them in ##werewolf-dev
2014-02-23 19:38:20 +01:00
Tobias "ToBeFree" Frei
eda0bc2df8
Adding a period to the end of the sentence
...
thanks to Calinou for pointing out this issue! :-)
I've looked through the rest of the code; it seems to be the only issue of that kind. If you find more, report in ##wolfgame-dev
2014-02-23 19:31:59 +01:00
Yizhe Shen
dd80dbb7ca
Small fix in player_stats().
2014-02-22 22:19:01 -05:00
nyuszika7h
8a3cc33794
Add !fsend for admins to send raw IRC messages
2014-02-22 20:14:51 +01:00
Yizhe Shen
e7cbd34303
Alternate fix for reset_modes().
...
Fixes a small oversight in reset_modes().
2014-02-22 06:58:19 -05:00
Yizhe Shen
aaba54baa2
Fix for mode-reset lag.
...
Moved mode resets to a separate method so it can be called
separately. This allows it to be performed before disk I/O at the
end of a game.
2014-02-21 19:26:34 -05:00
nyuszika7h
879ea90ab1
Remove trailing whitespace
2014-02-21 22:54:30 +01:00
nyuszika7h
3e2649bad1
Merge branch 'cloak_account' of git://github.com/brrr2/lykos
2014-02-21 22:52:51 +01:00
nyuszika7h
e80c78ba36
Fix previous commit
2014-02-21 10:35:21 +01:00
nyuszika7h
35a7e02f81
Respect !simple for !gstats/!pstats
2014-02-21 10:25:53 +01:00
nyuszika7h
b90ba46e73
Fix previous commit (again)
2014-02-21 10:08:44 +01:00
nyuszika7h
a3cf5cb780
Fix previous commit
2014-02-21 10:05:41 +01:00
nyuszika7h
91e7816861
Fix rate limit for gstats/pstats and remove mystats in favor of pstats
2014-02-21 10:03:48 +01:00
Yizhe Shen
ff1f8ee496
Fix for updating user cloak and account.
...
Fixes the rare case when "simple" stops working.
2014-02-21 03:10:11 -05:00
nyuszika7h
c7b8a6505e
Actually fix !gstats for real now
2014-02-20 16:58:38 +01:00
nyuszika7h
d39f199bf5
Fix previous commit
2014-02-20 16:56:33 +01:00
nyuszika7h
fea8ccd1bd
Fix gstats and pstats in PM
2014-02-20 16:55:18 +01:00
nyuszika7h
3e0df48c7c
Fix !pull again...
2014-02-20 16:49:05 +01:00
nyuszika7h
5ed31496a3
Add missing import
...
And remove redundant double import.
2014-02-20 16:46:57 +01:00
nyuszika7h
346364b938
Fix previous commit
2014-02-20 16:45:14 +01:00
nyuszika7h
6d37e32b0a
Add !pull command
2014-02-20 16:43:38 +01:00
nyuszika7h
9b10ba2851
Add aliases and rate limit for p/g/mystats
2014-02-20 16:36:55 +01:00
nyuszika7h
7ca06ebabf
Final fix for stasis, it finally works right!
...
In the future I might add nick completion.
2014-02-19 21:13:04 +01:00
nyuszika7h
9145231e58
Fix previous commit
...
If this doesn't work, I'll test locally first, I should have done that
in the first place.
2014-02-19 21:05:10 +01:00
nyuszika7h
05f048c6c9
Even more fixes for stasis.
2014-02-19 21:02:37 +01:00
nyuszika7h
b2ff0a486b
Fix programming error made because I'm tired
2014-02-19 20:43:17 +01:00
nyuszika7h
8f01f49461
Fix previous commit
2014-02-19 20:41:54 +01:00
nyuszika7h
16b695de65
Further fixes to stasis (hopefully the last one for now).
2014-02-19 20:31:30 +01:00
nyuszika7h
49303b62eb
More fixes to stasis.
2014-02-19 20:26:09 +01:00
nyuszika7h
23574cdd45
Merge branch 'master' of github.com:lykoss/lykos
2014-02-19 20:18:14 +01:00
nyuszika7h
6943dbdd4e
Some fixes to stasis (cf. GH-5).
2014-02-19 20:18:00 +01:00
nyuszika7h
e82920b57d
Merge pull request #1 from brrr2/min_players_fix
...
Fix for invalid values of MIN_PLAYERS.
2014-02-19 14:32:57 +01:00
nyuszika7h
c5f290a50c
Merge pull request #3 from jacob1/master
...
fix bug where targeted harlot could still shoot wolves (and get an extra bullet)
2014-02-19 14:32:28 +01:00
nyuszika7h
29473b2098
Fix previous commit
2014-02-19 14:28:53 +01:00
nyuszika7h
2137a4466f
Clarify fstasis messages. Closes #2 .
2014-02-19 14:27:08 +01:00
jacob1
ffdd94ed4a
fix bug where targeted harlot could still shoot wolves (and get an extra bullet)
2014-02-18 20:53:06 -05:00
Yizhe Shen
0ad366fd39
Fix for invalid values of MIN_PLAYERS.
...
Also added some bolding.
2014-02-17 17:41:23 -05:00
nyuszika7h
8342114844
Merge branch 'master' of git://github.com/xnrand/seerwolf
2014-02-17 10:43:19 +01:00
xnrand
d769943c0a
Add feature for wait time added for each !join
...
Ineffective by default because the wait time is set to 0 in the default
configuration file.
2014-02-17 05:02:27 +01:00
Yizhe Shen
9ad5713471
Added MIN_PLAYERS setting.
2014-02-16 20:24:46 -05:00
Yizhe Shen
3d367f6bea
Minor changes.
...
Added grand total to the output of "gamestats" command when no size is
given. Changed camel case to '_' for a couple of variables. Added
identification check for "player" command.
2014-02-15 22:38:15 -05:00
Yizhe Shen
04d2702f36
Added get_player_totals(). Some code cleanup.
...
If the "player" or "mystats" command is called without a role,
then the bot will now list the total games that the player has
played in each role.
2014-02-13 21:59:52 -05:00
Yizhe Shen
04a4f00f80
Added check for abnormal game stop before updating game stats.
2014-02-13 19:05:39 -05:00
Yizhe Shen
32fa38a6c9
Refactored some stats code.
...
Made update_roles_stats() and update_game_stats() a bit cleaner.
2014-02-13 18:05:59 -05:00
Yizhe Shen
ab1731d93c
Removed redundant check in "myrole" command.
2014-02-12 18:53:22 -05:00
Yizhe Shen
e7dad23525
Added check for gun/bullets for "myrole" command.
...
Adds additional notification of gun/bullets if the player has them.
Minor change in the way messages are sent out for "myrole" command.
2014-02-12 18:53:20 -05:00
Yizhe Shen
609490e87b
Added "myrole" command.
...
A command to remind players of their role during games.
2014-02-12 18:53:19 -05:00
Yizhe Shen
79b870499b
Added additional limits for "gamestats" parameters.
...
Added check to make sure the parameter is an integer between 4 and
var.MAX_PLAYERS.
2014-02-10 23:46:24 -05:00
Yizhe Shen
977112826f
Updated stats text. Player stats command checks for account.
...
Updated game text for stats commands. Fixed error with "mystats" help
string. Added additional check in player stats commands to find the
associated account before attempting to retrieve stats.
2014-02-10 19:01:11 -05:00
Yizhe Shen
829fd260e2
Changed behaviour of "gamestats" command.
...
"gamestats" without a parameter will list game totals for all game
sizes. The role parameter for player stats commands is now case
insensitive.
2014-02-10 19:01:09 -05:00
Yizhe Shen
a12128b486
Fix for multi-word roles.
...
Also added help definition for "mystats" command.
2014-02-10 19:01:08 -05:00
Yizhe Shen
cbae0291f8
Added game stats to database and "gamestats" command.
...
Added a game stats table to game DB to store wolf/village wins for
each game size. Added "gamestats" command to display stored stats.
2014-02-10 19:01:07 -05:00
Yizhe Shen
1994e7330f
Added commands to access player stats.
...
Loosely based on code from jcao219. New commands are "player", "p", "mystats", "me". The commands access existing stats stored in the game database (data.sqlite3).
2014-02-10 19:01:06 -05:00
Yizhe Shen
2b57abc1fb
Added an option for hidden traitor.
...
Added the option in ./modules/wolfgame.py. When activated, if traitor dies before turning, he will only be revealed as a villager.
Also, when "stats" command is used, traitor will be counted as a villager. By default, it is set to True.
2014-02-09 14:17:01 -05:00
nyuszika7h
2ac60b47fb
Fix previous commit.
2014-02-09 12:24:57 +01:00
nyuszika7h
a406485319
Prevent detective from IDing themselves. Closes #18 .
2014-02-09 11:33:45 +01:00
jacob1
193387bb0f
Shooting a werecrow tells you it was one.
...
Also some other small changes.
2014-02-07 23:57:57 -05:00
nyuszika7h
781317785d
Merge branch 'master' of git://github.com/xnrand/seerwolf
2014-02-01 19:36:19 +01:00
nyuszika7h
6e2d7f3d49
Slightly change message when last player leaves
2014-02-01 19:36:00 +01:00
xnrand
92cd0f5f34
implement extra wait time for !join
...
i.e. it makes sure that there are at least X seconds of wait time left after a !join.
Feb01[18:03:40] +Zazie_Lavender | I think there should be an enforced 10 to 20 second wait after last !join
2014-02-01 19:30:50 +01:00
jacob1
4c213e077b
Fix bug where game might end early when multiple people are killed at night
2014-01-02 19:18:16 -05:00
xnrand
113064ac45
new image
2013-12-22 01:38:28 +01:00
nyuszika7h
77be645d9c
Limit wolf gunner to 1 bullet
...
It's sometimes too easy to win for wolves, even with 2 bullets.
2013-11-10 22:20:24 +01:00
nyuszika7h
29f210b394
Fix !pony working when you're not playing
2013-11-10 22:03:49 +01:00
xnrand
f95abc7303
Improvements to the random pictures announcing on kill
...
Added a new picture, you will like this one.
Changed that one .jpg URL that actually pointed to a .gif file to .jpg.
Changed picking algorithm to have fixed chances even when adding new pictures. Uses random.choice().
We don't want to have these pictures quite as often. We once had a 1/100 chance. To balance things out a bit, a 1/50 chance should do.
2013-11-10 20:09:08 +01:00
Kyle Fahringer
d34207dc67
add three more pictures
...
wolfbot needs more gif
2013-11-10 13:46:06 -05:00
nyuszika7h
da0681b90d
Show admins which are !away in !admins
2013-11-06 22:39:32 +01:00
xnrand
9765c276c6
Fix fatal typo
2013-11-03 11:52:14 +01:00
nyuszika7h
180d36851e
Allow using !stats in PM
2013-10-16 22:34:28 +02:00
nyuszika7h
dcb7016b2f
Prevent seer from seeing themselves
2013-10-01 22:21:50 +02:00
nyuszika7h
ab2048d5ef
Merge branch 'fix-werecrow'
2013-09-18 20:20:49 +02:00
nyuszika7h
55cc34df3f
Fix werecrow dying when wolf is shot dead at night
...
Previously, if a wolf was shot dead at night, any werecrows that have
observed were removed from the game without announcement, although they
would remain voiced.
For those who are curious, this is because lists are copied by reference
on assignment in Python; any changes made on the variable you assigned
the list to will be reflected in the original list. This can be avoided
by making a shallow copy of the list using `list(x)` or `x[:]`.
2013-09-18 20:14:52 +02:00
nyuszika7h
b329fb823e
Fix flashback dog
2013-09-13 15:32:37 +02:00
nyuszika7h
6117444de8
Merge branch 'fix-wolfrelay-actions'
2013-09-12 16:37:17 +02:00
nyuszika7h
ff0078e9ec
Bold nick for actions in wolf relay
...
Without this fix, a wolf team member could '/nick Someone' and leave a
fake detective paper, which is indistinguishable from a real one.
2013-09-12 16:36:24 +02:00
aLaserShark
44da66a50e
super secure flashback dog
2013-09-11 10:18:58 -04:00
aLaserShark
3566dd5886
import random
2013-09-11 10:13:19 -04:00
aLaserShark
3066870932
pointless flashback dog
...
http://i.imgur.com/nO8rZ.gif
has a 1/100 chance of appearing every time someone is killed
2013-09-11 10:11:28 -04:00
nyuszika7h
97a8abff45
Revert "Prevent visited harlot from being killed"
...
This reverts commit f49e7371b8
.
Thinking about it, the old behavior actually makes sense. X visits Y,
and Y visits X. When wolf targets X, they find Y, and vice versa.
2013-09-05 21:44:08 +02:00
aLaserShark
62faf8b2e8
Delete sabotage.py
...
fud
2013-09-04 10:21:34 -04:00
nyuszika7h
b96c98b01d
Add !pony command
2013-08-29 23:23:38 +02:00
nyuszika7h
a8ed5bd3c4
Re-add coin landing on side/bot
2013-08-29 23:20:24 +02:00
nyuszika7h
b5c83eaf42
Allow negative value in !fwait
...
This is a quite hacky way, and although in my tests, it does not crash
the bot, it might be possible, and there might be a better way to do
this.
2013-08-26 17:52:32 +02:00
nyuszika7h
f49e7371b8
Prevent visited harlot from being killed
...
At 12 players, there are two harlots, and they can visit each other.
This is intended to make both of them invincible, but the actual
behavior was that the one visiting the victim would die.
2013-08-26 16:30:28 +02:00
Robert Wall
ed62cbbfc9
Change branch condition for checking if night is over, fixes #17
...
chk_nightdone used to check whether the number of people seen equals
the number of seers (and the same for harlot, etc.). This means night
times out if the seer (etc.) leaves after seeing but before night is
otherwise ended. This commit changes equals to >=, and swaps around the
wolf part of that condition so that it matches the other parts.
2013-07-15 19:37:10 -07:00