Commit Graph

77 Commits

Author SHA1 Message Date
Ryan Schmidt
8da46db506
Add --fakelag switch to determine tokenbucket settings (experimental) 2018-07-13 16:34:40 -07:00
Samuel Hoffman
532386a2b9 Support for TLS certificate verification and client certificates. (#301)
If a TLS certificate fingerprint is provided, the client will check it against the SHA256 hex digest of the server's certificate. Different hash algorithms can be specified, and multiple fingerprints can be specified for networks with more than one server.
2018-01-10 07:58:19 -07:00
jacob1
9f43a8a6d6 nicer error message when running on python < 3.3 or python 2 2017-04-22 17:32:04 -04:00
Ryan Schmidt
1cc38e54b2 Make potato an alias for villager (#290)
Also allow prefixing commands by their role name to remove ambiguity
should a person be multiple roles. For example, "seer see foo" and
"augur see foo" will now work if a person is both seer and augur
(whereas normal see foo would be ambiguous). A player will be directed
to use the unambiguous prefixed version if we detect that a role command
will fire multiple times for them (note: coming soon).

For sanity reasons, these role prefixes are implemented as exclusive
commands, meaning no other commands or command aliases may use the same
name. Clone needs to be special-cased in this regard, as clone is both a
role name and a command name.
2017-03-24 16:31:08 -04:00
Vgr E. Barry
ad7e0f11ac Ignore messages received before the bot is fully set up 2017-01-17 12:52:27 -05:00
skizzerz
24ae5c1e39 Kill USE_NICKSERV_GHOST, default more things in settings.py
Whether or not GHOST is used now depends on if NICKSERV_RELEASE_COMMAND
or NICKSERV_REGAIN_COMMAND are empty. Also, we do not try to go into an
infinite loop should the command we use fail to work, and instead just
run with a "wrong" nick.

Not tested at all, so blame ilbelkyr when things inevitably don't work
with it (and while you're blaming him, get him to fix the ASM website).
2016-11-20 12:36:31 -06:00
Vgr E. Barry
1766f54b21 Properly handle the option to use ghost or release 2016-11-18 21:14:15 -05:00
Vgr E. Barry
22b353b979 Update channel name 2016-11-18 21:06:30 -05:00
Vgr E. Barry
d090e573b7 Greatly improve channel handling
This also does some more bits of rudimentary user handling, but most of it still remains to be done.

Note: This adds DEV_PREFIX to botconfig and LOG_PREFIX to settings (var), make sure to properly update your bot!
2016-11-02 22:31:54 -04:00
Vgr E. Barry
5c9b13ce87 Improve NOTICE handling
The `notice` parameter is now keyword-only, and the handler now uses `functools.partial` instead of a lambda function.
2016-10-31 20:59:52 -04:00
Vgr E. Barry
2877abea55 Update as per @skizzerz's comments 2016-10-26 20:06:29 -04:00
nyuszika7h
cc05019fc3 Instruct users to do "pip install --user" instead
Without that flag, it will try to install globally and fail unless the
user is administrator/root.

(And let's hope nobody runs lykos as root - though some may be smart
enough to realize sudo is needed).
2016-08-24 23:09:17 +02:00
Vgr E. Barry
7cbc86cc98 Add hard dependency for typing and type hints
No actual type hints have been added yet. This will give a slight chance
for bot owners who currently don't have it installed to install it
before we start adding type hints.
2016-08-24 16:58:24 -04:00
Vgr E. Barry
7fd6654480 Tweak startup dependency error message formatting 2016-08-24 16:49:53 -04:00
Vgr E. Barry
4631d3dd1d Set the ground up for static type checking
Not yet enforced, but soon, bot owners will be forced to install the
typing module.
2016-08-13 11:43:05 -04:00
Vgr E.Barry
274a132f65 Increase hard requirement for running the bot to Python 3.3 2016-08-03 14:16:35 -04:00
skizzerz
1b7b2f6799 Make discrimination based on case ilegel
All hostmask and account comparisons are now case-insensitive (nicks
still aren't, related to #217 -- changing nick sensitivity would break
everything in numerous places).

Also, refactor some things into other files where it makes sense to do
so, because putting unrelated things into the same commit is fun.
2016-07-27 17:03:34 -05:00
Vgr E. Barry
6475a57402 Break Python 3.2 compatibility 2016-01-31 16:54:54 -05:00
nyuszika7h
c6a5cea715 Log connection, end of MOTD and joining channels in normal mode 2015-11-27 17:37:04 +01:00
jacob1
eaf226d640 Merge pull request #190 from lykoss/server-pass
Add SERVER_PASS config to control PASS command
2015-11-11 23:49:32 -05:00
Vgr E. Barry
a63c7b5e0d Add official notice to deprecate 3.2 support
Please note that no date has been specified - It is left to the
discretion of the developers when the support will be officially gone.
February 2016 is given since it is the EOL for the distros still using
it.
2015-11-10 09:43:59 -05:00
skizzerz
a816b4b4ee Add SERVER_PASS config to control PASS command 2015-11-08 11:05:56 -06:00
nyuszika7h
7cc2aaeb4d Fix imports 2015-06-15 17:36:46 +02:00
nyuszika7h
dd2d82392d Reorganize imports 2015-06-15 15:20:27 +02:00
Vgr E.Barry
378334478c Move files around and update references 2015-04-04 07:39:54 -04:00
jacob1
91c2c26a45 print error message when running with python 2 2015-01-14 22:53:11 -05:00
Vgr E.Barry
55a14d6a3f Add a proper logging feature. Closes #72. 2015-01-13 19:58:55 -05:00
nyuszika7h
05866b62ca s/RNAME/REALNAME/ 2014-11-14 13:54:28 +01:00
jacob1
dcae30a707 ident and realname config settings 2014-11-14 00:22:47 -05:00
nyuszika7h
999a612da8 wolfbot.py: error on Python <3.2 2014-08-25 20:30:58 +02:00
jacob1
9d238293e9 use "python3" command instead of "python3.2" 2014-08-25 14:29:57 -04:00
Eitan Adler
1bb3f2aefb Small cleanup 2013-04-09 19:25:08 -04:00
Eitan Adler
46eeffee39 Simplify logger initization logic 2013-04-09 19:14:43 -04:00
Jimmy Cao
d4a3499680 add --verbose mode 2012-07-13 20:35:31 -05:00
Jimmy Cao
022d00847f ssl support 2012-06-29 14:25:37 -05:00
Jimmy Cao
e02402d77e sasl authentication, improved bot regain/release behavior, botconfig.py updated! 2012-06-29 13:59:59 -05:00
Jimmy Cao
db011f7ed3 make debug output more readable 2012-06-26 17:02:10 -05:00
Jimmy Cao
033aa41917 allow /notice commands as an option in the botconfig (not turned on by default) 2012-06-25 17:53:24 -05:00
Jimmy Cao
945190a6e1 major restructuring 2011-12-28 17:44:11 -06:00
Jimmy Cao
922ec19b7f change line endings to unix style 2011-09-03 23:41:31 -05:00
Jimmy Cao
d87d362d23 bug fix 2011-08-18 15:25:25 -05:00
Jimmy Cao
abf194b92b make it easier for the bot to exit, allow rejoin after part within 7 seconds 2011-08-17 23:19:21 -05:00
Jimmy Cao
39a0bf784d add timestamps for logging 2011-08-16 01:31:24 -05:00
Jimmy Cao
f4bf25df10 better error handling 2011-08-14 21:40:05 -05:00
Jimmy Cao
51fe49d9e9 newlines at the end of the files 2011-08-09 15:01:17 -05:00
Jimmy Cao
8c03005a88 now errors before the bot actually starts up successfully are logged 2011-08-09 14:56:03 -05:00
Jimmy Cao
be7cb99219 fixed non-privmsg-nickserv authentication, added rate limiting for !stats, !votes, !admins, detectives now have a more complete PM message 2011-08-07 00:48:26 -05:00
Jimmy Cao
bc9d433168 made the shebang line specific to python 3.2 2011-08-03 21:34:56 -05:00
Jimmy Cao
849f60d620 fixed some bugs and added game logging capabilities 2011-08-02 19:56:51 -05:00
Jimmy Cao
df2754dbad "An error has occured" -> "An error has occured and has been logged" 2011-07-29 17:25:49 -05:00