Commit graph

2063 commits

Author SHA1 Message Date
jesopo
46e124a5db Included notices in print_activity, don't always print channel name 2018-07-23 10:20:00 +01:00
jesopo
2ea2dd17da implemented handling notices in IRCLineHandler, including server notices 2018-07-22 21:46:22 +01:00
jesopo
ad68527688 remove debug print in books.py 2018-07-22 20:55:16 +01:00
jesopo
8cf45c2432 rating, date and authors are optional in google's book apis 2018-07-22 20:53:44 +01:00
jesopo
e73d056b34 include quit reasons in print_activity if present 2018-07-20 13:12:55 +01:00
jesopo
270bfe58ed Ban formats aren't bools 2018-07-20 13:12:41 +01:00
jesopo
6213ba5f61 added a way to prevent bitbot accepting invites 2018-07-19 14:39:29 +01:00
jesopo
e99671aced Added a channel setting for banmask, added !unban 2018-07-19 14:39:10 +01:00
jesopo
d0ef4432b3 move sending CAP sasl request to sasl.py 2018-07-16 21:41:39 +01:00
jesopo
f24dc72bcb set default argparse config argument to bot.conf 2018-07-16 00:45:32 +01:00
jesopo
d385d73dab use PRIORITY_URGENT in perform.py 2018-07-16 00:41:08 +01:00
jesopo
e06d5f37f8 switch to using configparser for config files 2018-07-16 00:36:52 +01:00
jesopo
2012a388da move sasl logic to it's own module 2018-07-15 23:56:06 +01:00
jesopo
2b30ffc71b fix print_activity still using old EventManager priority location 2018-07-15 23:55:21 +01:00
jesopo
f84a05aec5 check if a channel is in attempted_join before attempting rejoin 2018-07-15 23:54:27 +01:00
jesopo
8307a1121a move priority constants to root of EventManager namespace 2018-07-15 23:53:59 +01:00
jesopo
66397cb24a Made part/quit print_activity functions more uniform 2018-07-15 15:22:37 +01:00
jesopo
d3e8920e2a Use QUOTES.items() in quit.py 2018-07-15 15:19:11 +01:00
jesopo
68298bbccf Added EventHook.call_for_result to get a result or default from an event 2018-07-15 15:15:52 +01:00
jesopo
06de65b1c1 Move quit quotes to it's own module 2018-07-15 15:09:11 +01:00
jesopo
01f9f51ef2 print_messages->print_activity, print more things! 2018-07-15 14:14:20 +01:00
jesopo
ace82e49e5 Send events when BitBot sends a PRIVMSG 2018-07-15 14:13:51 +01:00
jesopo
44362a1f03 added more vertical whitespace to IRCChannel 2018-07-15 13:39:15 +01:00
jesopo
6500d595ae Allow own usermodes to have args, added some vertical whitespace in IRCServer 2018-07-15 13:30:27 +01:00
jesopo
f961c95de9 only pass things needed through events, not **data.map() 2018-07-14 10:18:28 +01:00
jesopo
718da30728 skip !more's out/err, added a way to split messages from their prefixes for
logging purposes
2018-07-14 09:50:12 +01:00
jesopo
7d9f3dc6e4 Allow translate source/target languages to be more than 2 chars 2018-07-14 09:06:52 +01:00
jesopo
d12b61620d Implemented delimited "event chains" and changed pong.py to use it 2018-07-08 11:18:55 +01:00
jesopo
e17bb692f2 IRCChannel.modes isn't a list, "sever" -> "server" 2018-07-02 16:34:29 +01:00
jesopo
29c55246b0 Clear default mode prefixes when we get a 005 with mode prefixes in it 2018-07-02 16:25:34 +01:00
jesopo
fe89164077 Default IRCServer.mode_prefixes to @+(ov) 2018-07-02 16:24:00 +01:00
jesopo
9f76de304f server.mode_prefixes is a dictionary 2018-07-02 16:19:22 +01:00
jesopo
84cc65526f Track user channel modes by user object, not nickname 2018-07-02 16:15:26 +01:00
jesopo
ae9d715e55 Added guid functionality to random_number.py 2018-07-02 14:45:25 +01:00
jesopo
dc0babe599 Accept http and https soundcloud urls 2018-07-02 14:34:46 +01:00
jesopo
50bf76d795 Add logic in soundcloud.py to accept urls and search back through log for urls 2018-07-02 14:33:38 +01:00
jesopo
b27610e23d Fixed translate.py 2018-07-02 12:51:36 +01:00
jesopo
7affd3b9f3 Add missing on_kick event hook in channel_save 2018-07-02 12:51:18 +01:00
jesopo
035d62f9d4 Added an event hook priority system 2018-07-02 12:23:33 +01:00
jesopo
f6a5d97842 Don't make a database cursor per thread as there should only be 1 thread 2018-07-02 12:13:54 +01:00
jesopo
e89b4b6a83 Don't add a server to bot.servers until it's connected 2018-07-02 12:08:26 +01:00
jesopo
cb486d6122 random.py -> random_number.py due to name collision (stdlib) 2018-07-02 11:09:49 +01:00
jesopo
3c138c1d18 If BitBot is kicked from a channel, remove from channel_save 2018-07-02 11:09:22 +01:00
jesopo
464510cd80 OMDBAPI now needs an api key 2018-07-02 11:09:02 +01:00
jesopo
685364d56d Fixed small type in IRCServer 2018-07-02 11:08:39 +01:00
jesopo
1148aad8a4 added handle_KICK to IRCLineHandler 2018-07-02 11:08:04 +01:00
jesopo
9f6a3b600a Remove commented example raw IRC line from IRCLineHandler 2018-06-17 12:51:23 +01:00
jesopo
d84cb62180 Added first version of print_message to prettyprint log certain activities 2018-05-02 07:30:16 +01:00
jesopo
11ddb1fca5 Remove rickroll 2018-05-02 07:20:52 +01:00
jesopo
dcd0c0a542 Use IRCServer.original_nickname in perform.py as we might not have our "given" nickname yet 2018-05-02 07:20:13 +01:00