Commit Graph

1350 Commits

Author SHA1 Message Date
skizzerz
6a0dd3a70c Revert 180f64e and followup 5e0e022.
This needs proper discussion before being implemented, and if decided to
be implemented should be done as a PR.

The "don't show person's nick in pmcommand" part is fine and could be
re-added, git revert is stupid and doesn't let me do a partial revert.
2015-02-27 00:08:58 -06:00
jacob1
f592af1d6b !revealroles now shows a ton more info
now shows lovers, dead vengeful ghosts & teams, clone / assassin targets, gunners, what totems shamans have, and what totems were given out to who
2015-02-26 23:17:36 -05:00
Vgr E.Barry
5e0e022bc3 Fix wolves getting other people's messages. 2015-02-26 12:50:20 -05:00
Vgr E.Barry
079e13d10d Add a !players alias to !stats. 2015-02-26 09:23:29 -05:00
Vgr E.Barry
180f64e7b8 Improve PM commands to tell all wolves (+tell who is wolf).
Also remove the nick from the message if it's in PM, regardless.
2015-02-26 09:23:19 -05:00
Vgr E.Barry
c75ec4f559 Respect settings if GA can guard self. 2015-02-26 07:14:29 -05:00
Vgr E.Barry
02ec5e9309 Improve some messages when beginning night.
Harlot: Mention ability to visit oneself to stay home.
Bodyguard: Mention ability to pick oneself to guard noone.
Guardian Angel: Mention ability to guard oneself.
Guardian Angel: Add user to the players list.
Guardian Angel: Remove last guarded user from the players list.
All kinds of shamans: Remove user that last received a totem from this
user from the players list.
2015-02-25 19:31:35 -05:00
Vgr E.Barry
10706674c3 Prevent unsuccessful !joins to trigger the ping-if timer. 2015-02-25 17:15:37 -05:00
jacob1
11dbb56a0e also don't allow people with hosts matching players currently in the game to use revealroles 2015-02-24 20:49:31 -05:00
jacob1
58067a3264 don't allow someone to !revealroles if another player under that account name is still in the game 2015-02-24 16:12:17 -05:00
skizzerz
1c7a60540d If revealroles is allowed during normal play, restrict it to only non-players and dead people. Still admin-only so it logs and needs to be fallowed 2015-02-23 22:32:33 -06:00
Vgr E.Barry
e691f918c8 Revert previous 'fix' and discard any conflicting possibilities. 2015-02-22 20:18:24 -05:00
Vgr E.Barry
05e3ecd68f Add missing lock release causing the bot to hang up. 2015-02-22 20:07:45 -05:00
Vgr E.Barry
425919ffa5 Excplicitely acquire the warning lock to release it only when we need to. 2015-02-22 19:52:21 -05:00
nyuszika7h
19760a0ea7 pingif: Fix incorrect usage of 'any' 2015-02-22 22:46:48 +01:00
nyuszika7h
7761289893 pingif: Reorder checks (micro-optimization) and improve readability 2015-02-22 22:24:38 +01:00
nyuszika7h
1447284666 pingif: Add more ways to disable 2015-02-22 22:20:32 +01:00
nyuszika7h
27c753efb8 pingif: Remove redundant 'ping-if' alias 2015-02-22 22:13:51 +01:00
Janik Kleinhoff
71b420a1a5 Merge branch 'ping-if-feature'
This appears to have been sufficiently reviewed and doesn't seem to have
any critical flaws remaining; multiple other people agreed with merging.
2015-02-21 23:17:19 +00:00
Vgr E.Barry
2565f11f03 Remove leftover command prefixes. 2015-02-21 18:01:50 -05:00
Vgr E.Barry
13398b4bc3 Remove the command prefix from a few messages. 2015-02-21 17:45:38 -05:00
Vgr E.Barry
79a57f6389 Use dict.get() method where possible for ping-if settings. 2015-02-21 17:40:26 -05:00
jacob1
2009f7763f don't log "unhandled commands" (all messages are still printed anyway) 2015-02-21 17:37:22 -05:00
nyuszika7h
d295a0bdc2 Re-add settings/__init__.py
That shouldn't have been removed. Oops. Now I also added a notice to
anyone who may be looking at the otherwise pretty empty file in the
future.
2015-02-21 23:05:08 +01:00
nyuszika7h
9f6e474ff6 Remove unused code and files 2015-02-21 23:03:11 +01:00
Janik Kleinhoff
66169aead4 s/game is canceled/the game is canceled/ 2015-02-21 21:44:54 +00:00
Vgr E.Barry
dbf614c0cc Fix !time not being usable in the join phase.
Previously, !time could be used in the join phase to see how much time
was left before the game started. With my decorators overhaul I broke
this feature. Adding this back in.
2015-02-20 17:24:23 -05:00
Vgr E.Barry
26dd0b9c26 Add threading locks to deal with the ping-if timer properly. 2015-02-19 22:16:48 -05:00
Vgr E.Barry
375e34eb3f Change the ping_join thread to be a timer instead. 2015-02-19 16:44:30 -05:00
Vgr E.Barry
1796c8d615 Update ping-if with @skizzerz's notes. 2015-02-19 06:00:24 -05:00
Vgr E.Barry
cd8ffbc4b6 Remove a useless conditional. 2015-02-18 04:30:56 -05:00
Janik Kleinhoff
7e6e190a1e Fix an undefined variable error (blame Vgr) 2015-02-18 05:05:26 +00:00
Vgr E.Barry
6f6805f1ea Tweak a few pingif messages to be more descriptive. 2015-02-17 06:08:38 -05:00
skizzerz
7d18a3b902 Alpha tweaks
- Fix bug when using bite and not specifying a victim where victim was
  None and thus trying to get their role resulted in a KeyError
- Forward params from bite onwards to kill so you no longer need to do
  both (although you can still bite one person and kill someone else if
  you REALLY wanted to for some reason... it still won't work though)
- If the bite failed for any reason (including if they targeted lycan
  who just instantly turns), refund the bite so the alpha wolf can try
  again after a wolf dies again during the day.
2015-02-16 23:39:27 -06:00
jacob1
805f49b985 fix crash when displaying certain characters on windows ಠ_ಠ 2015-02-16 22:53:21 -05:00
Vgr E.Barry
d107173268 Improve the pingif's versatility.
This merges !pingpref into !pingif, and allows for more user options, as
to how to get pinged. Default behaviour pings people once when their
desired player count is reached, and can be changed with !pingif as
well.
2015-02-16 20:59:11 -05:00
Vgr E.Barry
192b97d593 Improve the ping-if to not ping multiple times the same people. 2015-02-16 07:06:43 -05:00
Vgr E.Barry
225fdbc6bb Update the ping-if with @skizzerz's notes. 2015-02-15 21:03:30 -05:00
Vgr E.Barry
75b14a87c1 Improve the ping-if feature.
This adds sort of a rate-limiting and pinging method preferences. If the
amount of players the person wants is reached or exceeded, they will be
automatically added to the !ping list; this is the default behaviour.
Doing !pingpref will make the bot automatically ping them shortly after
- this is done by a separate thread which is started on the first join
and exits when game starts or last player quits. Doing so will not
remove them from the ping list.
2015-02-15 17:56:00 -05:00
Vgr E.Barry
d22d03d7d6 Add the new ping-if feature. 2015-02-15 14:47:46 +00:00
Janik Kleinhoff
40f9d9c04a !force: fix behaviour on fake nicks
!force 12 is meant to force 12, not to force 1 and 2.
Fixes issue introduced in 7f2e315.
2015-02-14 16:32:21 +00:00
Vgr E.Barry
c094028f87 Fix error arising when monster wins. 2015-02-14 11:03:46 -05:00
skizzerz
3d8ba4c1dd Add valentine mode 2015-02-13 19:28:00 -06:00
skizzerz
e5fd6326ba If GA guards harlot and harlot visits and harlot is attacked, play the harlot was attacked message 2015-02-07 20:19:18 -06:00
nyuszika7h
df64ebdd22 Fix !faftergame in PM with channel commands 2015-02-05 14:33:17 +01:00
nyuszika7h
b632f659e8 Fix code introduced in 1ce5d69 to be more clear
`L[:4:3]' isn't immediately obvious, especially for people coming from
other programming languages.
2015-02-05 14:16:32 +01:00
skizzerz
9652eb3cec Fix death triggers
Whenever a single target has multiple triggers (e.g. mad scientist +
assassin or assassin + lover), and the kills would overlap, errors would
happen. A previous attempt to fix this for the single case of scientist
+ lover/assassin was ill conceived and did not take deadlist into
account. Fix this properly now.
2015-02-01 18:57:03 -06:00
Vgr E.Barry
1ce5d69113 Improve is_admin and is_owner to check for cloak in privmsg if available. 2015-02-01 06:08:44 -05:00
skizzerz
b490d91f7a More ghost fixes with assistance from jacob1
- A ghost driven away by retribution totem can now get team wins if
  their team wins, but will not get individual wins. They used to
  unconditionally lose.
- Make it so ghosts driven away by retribution totem are no longer
  messaged and are no longer able to kill.
2015-01-31 22:38:32 -06:00
skizzerz
3f990a22ec Fix dead vengeful ghost always winning with village even if they are wolfteam, and clean up a weird-looking conditional 2015-01-31 21:58:33 -06:00