Vgr E. Barry
0d316d1ec6
Fix bot not devoicing player during day/join phases
2015-09-03 17:05:00 -04:00
Vgr E. Barry
5294f92c6c
Add !games to show the available game modes
2015-09-03 12:00:40 -04:00
Vgr E. Barry
609f3282b8
Fix missing name error
...
The worst part is that I tested that change quite a lot
2015-09-02 22:31:16 -04:00
Vgr E. Barry
bd93e96445
Improve !fgame to allow an arbitrary number of spaces
...
This also allows to be a bit more liberal with the punctuation
2015-09-02 18:37:49 -04:00
Vgr E. Barry
d827eae2d8
Add option to devoice players during night
2015-09-02 17:48:58 -04:00
Vgr E. Barry
78465c9769
Perform game-ending checks for random earlier on
2015-09-01 23:14:44 -04:00
Vgr E. Barry
245bc57b66
Separate chk_win in two functions
2015-09-01 23:13:10 -04:00
Vgr E. Barry
7702509f90
Fix changing nicks in join phase not working
2015-08-31 19:20:54 -04:00
jacob1
e4c53906fb
fix !swap when the player you are replacing already disconnected
2015-08-31 11:57:19 -04:00
Vgr E. Barry
2a35212ca4
Fix fallen angel's kill playing the wrong message
2015-08-29 20:56:26 -04:00
Vgr E. Barry
1fe1a7bfb3
Fix leftovers from the data types refactor
2015-08-29 20:56:15 -04:00
nyuszika7h
c233cbfc1f
Merge pull request #149 from lykoss/data-types-refactor
...
Mass refactor of the data types
2015-08-29 23:46:54 +02:00
Vgr E.Barry
aca7ea418f
Mass refactor of the data types
2015-08-29 23:45:44 +02:00
nyuszika7h
fa7cec485b
frole: Add new players to default role and voice them
2015-08-28 16:13:15 +02:00
jacob1
5bc3a96203
fix duplication and possible empty player list in the message previously charmed players get
2015-08-28 01:35:30 -04:00
jacob1
36c56f8f5f
fix error every time you PM the bot in debug mode
2015-08-28 01:18:42 -04:00
Emanuel Barry
f55492e6c8
Unconditionally print traceback
...
In debug mode traceback could go unprinted.
2015-08-27 18:17:45 -04:00
nyuszika7h
403e491c60
Fix bot sending idle warning in PM when messaging it after you're dead
...
Also changed it to use var.IDLE_WARNED_PM, as @skizzerz suggested a wolf
may want to intentionally idle sometimes.
2015-08-27 23:47:08 +02:00
nyuszika7h
a5a5c1c022
Mention oracle & augur in traitor message; fix cursed traitor message
...
Closes #150 .
2015-08-27 23:12:02 +02:00
nyuszika7h
8be512c216
Repeat idle warning in PM if the player is PMing the bot
2015-08-27 21:08:04 +02:00
Emanuel Barry
77619306ec
Fix bodyguard message
2015-08-27 14:51:21 -04:00
Emanuel Barry
b3f30bbd91
Improve error handler
...
Now it will only pastebin the error when it has finished gathering it
all.
2015-08-27 10:02:56 -04:00
skizzerz
3dc3e4d172
Fix race condition for day timing out immediately when a vote succeeds
2015-08-26 20:09:57 -05:00
skizzerz
bb5cb78c68
Fix fgame bug, str.split has idiotic semantics in python
2015-08-25 22:46:45 -05:00
skizzerz
75c407c403
Track player stats by nick if accounts are disabled
2015-08-25 15:52:27 -05:00
nyuszika7h
886434272f
Remove !me alias for !mystats
...
It conflicts with normal messages like "me too" in wolfchat, and I think
it's rarely (if ever) used.
2015-08-24 19:54:13 +02:00
nyuszika7h
82ef99b837
Fix !join telling you to !swap if you're already joined
2015-08-18 12:43:01 +02:00
jacob1
3ce856818a
fix the bot pinging everyone instead of just people using !pingif if DISABLE_ACCOUNTS is on
2015-08-17 18:17:45 -04:00
nyuszika7h
5a2a098db6
!wiki: Catch socket.timeout
2015-08-17 22:53:12 +02:00
nyuszika7h
79066e5ec6
Fix error in on_invite (blame @Vgr255)
2015-08-16 12:06:15 +02:00
jacob1
835441caea
fix bug where you could fdeny the same command multiple times if done by host
2015-08-14 01:31:48 -04:00
billion57
b936a4d3c5
More lynch/quit/no victims messages
...
yayy
2015-08-14 00:20:50 +02:00
Vgr E.Barry
3534cc7d78
Better handle non-built-in exceptions
2015-08-10 09:49:52 -04:00
Vgr E.Barry
d58a9249ab
Update error handler to ignore non-errors
2015-08-10 09:09:33 -04:00
nyuszika7h
0dd3c08862
Exit immediately if Ctrl-C is pressed twice
2015-08-08 22:46:32 +02:00
nyuszika7h
e8fc9f01bb
Ping players when ending game due to error in join phase
2015-08-08 22:16:06 +02:00
nyuszika7h
58286e7596
!swap: Don't error if user is not playing
...
I blame @Vgr255.
2015-08-08 22:07:02 +02:00
skizzerz
7e1c656185
Fix harlot dying visiting protected victim
2015-08-06 22:30:32 -05:00
skizzerz
1b50a37b69
Fix break_long_message, broken in 5793097626
2015-08-06 22:06:04 -05:00
Vgr E.Barry
38b7ef81e2
Add proper error handling. Closes #151
...
All exceptions, if not caught, are unconditionally sent to `sys.stderr`.
We only need to use our own custom class with some modifications and we
can intercept all errors, even those in threads (which #151 was about).
The only real downside from this practice is that `cli` is not
accessible to us when the errors happen, so I used a hack to set it on
an instance variable. If anyone can find a better solution, please step
forward. For the time being, this will have to do.
If for some obscure reason this class breaks, `sys.__stderr__` holds the
original `sys.stderr`
2015-08-06 12:29:47 -04:00
nyuszika7h
74555f013a
Fix Windows error messages in !ping
2015-08-06 12:37:37 +02:00
nyuszika7h
74d4f9c95e
Actually add that ping message
2015-08-06 12:27:39 +02:00
nyuszika7h
e27cb0c1e0
Add another ping message
2015-08-06 12:27:10 +02:00
Vgr E.Barry
b3c8fd562a
Fix some errors and style in !swap
2015-08-05 21:55:09 -04:00
Vgr E.Barry
a6a128586d
Add a !swap command. Closes #129
...
This allows people to swap out an existing player from the game, and
join instead. Useful if, say, your home connection dropped, but your ZNC
is still online and you want to keep playing through your phone for
example. The player swapping and the one being swapped must be
identified to the same account for this to work. After the command has
been used, an implicit !myrole is performed, informing the player of
their role and templates. The on_nick handler has been decoupled into
two functions, where most of the logic is now in rename_player (which
swap uses).
Known issues: Hard drive space is left untouched.
2015-08-05 21:28:04 -04:00
Vgr E.Barry
188ede0b2e
Change is_user_altpinged to return only an integer
2015-08-05 21:22:42 -04:00
Vgr E.Barry
397d7362db
Update !roles
...
Now `!roles` while in a game will have the same effect as `!roles n`
where n is the number of players that joined. Also got rid of string
concatenation.
2015-08-01 09:54:08 -04:00
Vgr E.Barry
eef01df1f7
Nitpick by ChrisE
2015-08-01 09:35:27 -04:00
Vgr E.Barry
ff53ad4bcf
Modify is_user_stasised to return only an integer, not a tuple
2015-08-01 09:22:42 -04:00
Vgr E.Barry
0eee4b1c88
Fix random randomly failing to start
...
Pun unintended
2015-08-01 09:18:19 -04:00