Commit Graph

1113 Commits

Author SHA1 Message Date
Vgr E.Barry
55a14d6a3f Add a proper logging feature. Closes #72. 2015-01-13 19:58:55 -05:00
jacob1
ee00420812 fix missing space in oracle message 2015-01-12 14:21:27 -05:00
Vgr E.Barry
cbd3c60890 Fix bot crashing on start if DENY_ACCOUNTS is not empty. 2015-01-11 22:11:14 -05:00
Vgr E.Barry
813dc38cbf Modify message for oracle. 2015-01-11 21:37:47 -05:00
Vgr E.Barry
8a35862cb8 Don't display message about not receiving a PM on first night. 2015-01-11 21:21:19 -05:00
Vgr E.Barry
c29ed805e1 Allows !v to view votes in PM. Closes #106. 2015-01-11 19:29:34 -05:00
Vgr E.Barry
982d6cb697 Fixed help not respecting !notice. Closes #107. 2015-01-11 19:23:45 -05:00
nyuszika7h
5917db89dc CONTRIBUTING.markdown: Minor grammar fix 2015-01-08 22:29:46 +01:00
nyuszika7h
71a85bbd38 Fix rate limit affecting !fstart 2015-01-08 15:54:59 +01:00
nyuszika7h
59a6339729 Unify "not logged in to NickServ" notices
In some places, the bot says "not logged in to NickServ", while in other
places, it saays "not identified with NickServ". This changes all such
notices to use the first form.
2015-01-07 19:51:08 +01:00
nyuszika7h
667b824065 Fix typo: s/logged in/not logged in/ 2015-01-07 19:49:56 +01:00
jacob1
fa326b5fb3 fix fail with complete_match 2015-01-05 12:56:34 -05:00
jacob1
784bbe0111 prevent cases where you can unintentionally vote / act on yourself 2015-01-05 10:59:25 -05:00
skizzerz
5f458cc9dc Fix vengeful ghost incorrectly winning 2015-01-04 20:47:49 -06:00
skizzerz
b4fc0a214b Reduce number of immunizations doctor gets
Now doctor gets 2 at 10p, 3 at 15p, and 4 at 23p. Formerly it was 2 at
10p, 3 at 12p, 4 at 18p, and 5 at 24p.

This reduces the doctor to being able to only immunize between 13.64%
and 20% of the village (min at 22p, max at 10p and 15p), down from
between 17.39% and 25% (min at 23p, max at 12p).
2015-01-03 21:29:25 -06:00
Vgr E.Barry
e2c5c819d6 Make "frestart normalmode" behave as intended. 2015-01-03 20:04:13 -05:00
Vgr E.Barry
932d9f45f4 Improved argument parsing.
Made launch arguments override the config's values. Added a --normal
switch for overriding both debug and verbose parameters if present.
2015-01-03 19:49:58 -05:00
Vgr E.Barry
11b35c79ff Allow debug and verbose modes to be set directly from config. 2015-01-03 19:33:15 -05:00
Vgr E.Barry
555f80eb5e Merge branch 'master' of https://github.com/lykoss/lykos 2015-01-03 18:21:49 -05:00
Vgr E.Barry
4a6bd6665f Fixes faftergame (again). 2015-01-03 18:21:27 -05:00
jacob1
6fc05abd71 Merge pull request #102 from skizzerz/drunkassassin
Remove some restrictions on who can be assassin
2015-01-03 18:20:58 -05:00
Vgr E.Barry
d780cf04ad Fixes faftergame. I should stop breaking things. 2015-01-03 18:03:13 -05:00
Vgr E.Barry
cd7aac9398 Fix random errors. Blame Vgr. 2015-01-03 17:49:29 -05:00
jacob1
47f4f77f10 check if game ends when bitten/amnesiac turn, instead of sending out PMs and continuing it 2015-01-03 15:41:16 -05:00
jacob1
22ad235620 mad scientist gets told their targets and is reminded of their role every night 2015-01-03 13:30:24 -05:00
skizzerz
9f28036494 Remove some restrictions on who can be assassin
The only roles that should NOT be assassin are roles that the other team
MUST kill in order to have a good shot at winning. Therefore, we don't
need to have so many saferoles unable to be assassin, as well as certain
neutral roles. The current list is as follows:

- wolves + traitor, since these all need to die for village to win
- lycan, because if turned they need to die for village to win
- seer/oracle/harlot/augur/detective, capable of making safes so wolves
  need to focus on killing them in order to have a shot at winning
- bodyguard/GA, capable of preventing other safes from dying, again need
  to die for wolves to have a shot at winning

Everyone else is fair game, including shaman, drunk, hunter, doctor,
crazed shaman, and fool (who were all previously restricted).

If drunk is assassin, they don't get to choose their target, rather they
get one randomly assigned to them automatically.
2015-01-03 12:16:26 -06:00
Vgr E.Barry
6e9c2ef6ff Change a few minor things. 2015-01-03 10:55:48 -05:00
Ryan Schmidt
6714f66e54 Merge pull request #101 from lykoss/decorators-overhaul
Huge overhaul to the decorators (+ a lot of small changes).
2015-01-02 23:58:53 -06:00
Vgr E.Barry
7d49ac4cc4 Fixed a few issues.
Added wildcard * for !force and !rforce, which match all players.
removed leftover error message and fixed !kill and !totem crashing the
bot.
2015-01-03 00:50:57 -05:00
Vgr E.Barry
94d5939f39 Fix calling inexistant variables. 2015-01-02 20:45:03 -05:00
Vgr E.Barry
41089786d8 Remove notice if using a role command you don't have access to. 2015-01-02 20:40:15 -05:00
Vgr E.Barry
0984f79bd9 Improve handling of kill and away/back/in/out.
Uses variables instead of hardcoded roles for kill. Doesn't warn about
incorrect use of away and back if var.OPT_IN_PING is on, and about
incorrect use of in/out if it's off. References #76.
2015-01-02 18:11:07 -05:00
Vgr E.Barry
32fd7b2fa2 Improve help command. 2015-01-02 18:08:19 -05:00
Vgr E.Barry
df26d8d25e Huge overhaul to the decorators + small changes.
- Merge channel and PM commands in a single decorator.
- Add many parameters for the decorators, reducing commands cluster.
- Added back the admin_only check for some commands; special-cased
'<console>'.
- Moved the checking for which roles are seen wolf in the settings; same
for seen as default.
- Added a variable to pick if one is seen as the default role or as a
villager where applicable (default: True).
- Fixed seer/oracle seeing through amnesiac.
- Some fixes to the totem chances that I forgot to add in the previous
commit.
- Removed some useless module imports.
- Moved some functions to settings.
- Changed all single-quotes to double-quotes in commands for
consistency.
- Renamed 'cmd' variable in both force and rforce commands to avoid
confusion.
- Probably a bunch of other things. Don't consider this commit
description to be 100% complete.
2015-01-02 15:57:44 -05:00
nyuszika7h
53cf4970ca Disable !game if !fgame was used 2015-01-01 23:45:46 +01:00
Janik Kleinhoff
698d6f86ae START_QUIT_DELAY: fix duration check 2015-01-01 19:19:56 +00:00
Janik Kleinhoff
b1e59c4f77 !quit: tell player how long until they can quit 2015-01-01 18:59:27 +00:00
Janik Kleinhoff
09b5a62a9b Disallow !quit immediately after starting to avoid accidents 2015-01-01 05:20:52 +00:00
nyuszika7h
7d509e7c1d start: Add per-user rate limit 2014-12-31 21:07:25 +01:00
nyuszika7h
8b6393bf8e fsay, fact: Fix usage message 2014-12-30 22:16:42 +01:00
nyuszika7h
740d8a6e33 Fix signal handling on Windows 2014-12-30 22:13:40 +01:00
Vgr E.Barry
4f4a3f82a2 Fix totem chances.
This fixes the totem chances needing to add up to 1, and now can add up
to any arbitrary number or fraction. This also adds a TOTEM_ORDER
variable for shamans, as an attempt to allow more shamans in the future.
2014-12-30 15:04:43 -05:00
jacob1
453242a257 improve some comments and fix 'f rom' typo 2014-12-28 17:26:30 -05:00
jacob1
8dce5a4d16 gramatical fixes (var.plural one by skizzerz) 2014-12-28 17:06:15 -05:00
jacob1
356b9a25ba fix alpha wolf being seen as villager 2014-12-28 17:03:52 -05:00
skizzerz
1e09bff8df Fix alpha wolf bug 2014-12-26 22:32:44 -06:00
Ryan Schmidt
4e3b61f8dc Merge pull request #98 from skizzerz/alphawolf
Add 2 new roles: doctor and alpha wolf
2014-12-26 19:30:40 -06:00
skizzerz
aaba899983 Add "alpha" gamemode
This mode features the alpha wolf and doctor roles, and should provide
for very "swingy" games where wolves are very disadvantaged at first
but should be able to make a decent comeback later on.

This also brought some rebalancing to gamemode weights, mostly all of
the existing ones stayed the same though, a summary of changes is below.
Numbers below are rounded to the nearest percent, so they won't
necessarily add up to 100.

default: 41% -> 40% (-1%)
foolish: 19% -> 16% (-3%)
mad: 19% -> 16% (-3%)
classic: 11% -> 8% (-3%)
lycan: 3% -> 2% (-1%)
aleatoire: 8% -> 8% (0%)
alpha: n/a -> 10%
2014-12-26 01:07:27 -06:00
skizzerz
93f5c6a4f8 Make the bite command make use of the new get_victim function 2014-12-26 01:06:23 -06:00
skizzerz
d42fa45d2f Make alpha wolf more powerful
Each time a wolf dies while a bitten person is undergoing
transformation, they will now transform one night earlier. This makes it
much more likely for the bitten person to actually turn into a wolf
before the game is over. For larger game sizes, the turn is pretty much
guaranteed due to the number of wolves, which means safes need to
tightly coordinate to figure out who was actually bitten due to wolves
possibly having full info and an insider.
2014-12-26 01:06:23 -06:00