Commit graph

2910 commits

Author SHA1 Message Date
jesopo
746f08b5a8 "day" vs "days" in brithday.py 2019-11-28 14:23:33 +00:00
jesopo
8008532b30 note should be jsonified 2019-11-28 07:31:06 +00:00
jesopo
389370708d don't overwrite page - we need it for page.code 2019-11-27 22:10:45 +00:00
jesopo
cc976f33de identified_account -> identified 2019-11-27 21:53:33 +00:00
jesopo
b6a02d2476 support IRCLine.parse_human() in perform.py 2019-11-27 17:47:15 +00:00
jesopo
747ba5c646 add IRCLine.parse_human() to allow for "!raw /msg jesopo hello" 2019-11-27 17:38:17 +00:00
jesopo
f62fc8c2a1 show username when a toot is CWed 2019-11-27 15:16:46 +00:00
jesopo
038d6841f1 make !channels PM-only 2019-11-27 13:15:29 +00:00
jesopo
e1f527a374 prefix "hidden" channels in !channels with "*" 2019-11-27 13:13:52 +00:00
jesopo
efbe71bc0e add !servers command 2019-11-27 13:13:42 +00:00
jesopo
b66119ba96 use BufferLine.notes to allow cumulative sed edits 2019-11-27 12:59:59 +00:00
jesopo
9972125b24 remove IRCBuffer.skip_next (not used), pass buffer lines on message events 2019-11-27 12:06:57 +00:00
jesopo
e56e2d3e48 WHOX can effect hostmask permissions too 2019-11-26 18:45:13 +00:00
jesopo
7a5eb765c4 use " | " as location & temp separator 2019-11-26 18:42:33 +00:00
jesopo
d216ce3345 check hostmask on WHO too 2019-11-26 18:42:27 +00:00
jesopo
14c30c4c05 add check.command.permission and check.command.authenticated callbacks 2019-11-26 15:32:24 +00:00
jesopo
1d41bc7c34 page is already a soup 2019-11-26 14:34:41 +00:00
jesopo
8bb20bcb17 default first_item to None or it doesn't exist when there's no toots 2019-11-26 14:31:22 +00:00
jesopo
76ccbbbc46 show urls in !wikipedia output 2019-11-26 14:18:18 +00:00
jesopo
63d9ab19d5 add more.py 2019-11-26 14:18:12 +00:00
jesopo
c3ce47b19d update wikipedia.py to use Response.json() 2019-11-26 14:14:38 +00:00
jesopo
252e540f00 self._out takes a tags arg 2019-11-26 13:42:16 +00:00
jesopo
2d21dfa229 utils.http.Response.data should always be bytes - add .decode and .soup 2019-11-26 13:42:01 +00:00
jesopo
9eb51740b3 remove all eagle stuff from nr.py 2019-11-26 13:37:30 +00:00
jesopo
ed775ddbe3 remove parser from utils.http.Request, add Request.soup() 2019-11-26 11:35:56 +00:00
jesopo
93aea08818 utils.datetime.datetime_utcnow() -> utils.datetime.utcnow() 2019-11-25 18:18:09 +00:00
jesopo
6a6e789ec9 add cookies and .json() to utils.http.Response objects 2019-11-25 18:17:30 +00:00
jesopo
8626a29a69 include <title> with !google/!g output 2019-11-25 17:48:31 +00:00
jesopo
4586bc7903 remove tags from StdOut objects - expose through event_kwargs 2019-11-25 16:28:03 +00:00
jesopo
896dc480a5 slightly nicer format for weather output 2019-11-25 16:20:40 +00:00
jesopo
0bb7800934 .append_prefix() doens't exist anymore 2019-11-25 16:09:35 +00:00
jesopo
985e4704a0 switch !to to !tell, add !to as an alias of !tell 2019-11-25 12:18:07 +00:00
jesopo
531bc65889 explicitly say when an issue/PR was renamed
closes #209
2019-11-25 12:01:33 +00:00
jesopo
76286e2bd0 switch scripts module to no longer use set_prefix() 2019-11-25 10:53:16 +00:00
jesopo
73232b40e1 new_event doesn't exist when check_success is false 2019-11-25 10:43:30 +00:00
jesopo
7f7a31720c USERAGENT no longer exists 2019-11-25 05:55:22 +00:00
jesopo
0fc607b344 switch all hide_prefix() calls to .prefix = None 2019-11-22 17:30:17 +00:00
jesopo
be44244a71 reimplement send.stdout/send.stderr events 2019-11-22 17:29:49 +00:00
jesopo
5730d6fe59 refactor commands (mostly stdout/stderr) and split typing/reply out
closes #208
2019-11-22 16:23:30 +00:00
jesopo
3935bf3a30 IRCUser.get_identified_account() doesn't exist anymore 2019-11-22 11:50:23 +00:00
jesopo
6f67bf0c97 correctly detect when a track has tags (lastfm) 2019-11-22 11:48:10 +00:00
jesopo
090d46720a also set _account_override when registering 2019-11-21 16:53:27 +00:00
jesopo
0d13725ab7 check part of array, not whole array, for "*" 2019-11-21 16:36:06 +00:00
jesopo
50d12e7e1f implement master-password/master-login in permissions module 2019-11-21 16:31:23 +00:00
jesopo
dea29c5d5b authenticated is expected to be a boolean 2019-11-21 16:19:43 +00:00
jesopo
2dfc55fb9f refactor permissions and allow hostmasks to be assigned to accounts 2019-11-21 15:49:08 +00:00
jesopo
9f8c5acf52 add a way to execute commands through bitbotd (use for master-password) 2019-11-21 10:39:26 +00:00
jesopo
352df0fa75 support "$$" as a literal "$" in alias arg replacements 2019-11-20 18:25:32 +00:00
jesopo
da1f1fce08 add !notitle to bypass auto-title 2019-11-20 17:59:26 +00:00
jesopo
72d418a307 pattern-url isn't used anymore 2019-11-20 17:06:37 +00:00
jesopo
4d30263315 give bitbot a unique User-Agent
closes #206
2019-11-20 14:42:34 +00:00
jesopo
1823371380 bot admins should be allowed to use !calias 2019-11-20 14:33:46 +00:00
jesopo
7a7610acb8 remove shlex from echo.py 2019-11-20 13:33:30 +00:00
jesopo
6c9a04a3ef "alias-%s" -> "command-alias-%s" 2019-11-20 12:41:31 +00:00
jesopo
714d40b79f "!alias show" should be looking at index 1 for alias 2019-11-20 12:05:41 +00:00
jesopo
050bfd29f7 args_split shouldn't be [""] when args is empty 2019-11-20 12:03:02 +00:00
jesopo
cb111f0c93 show error on unknown !alias subcommand 2019-11-20 12:02:51 +00:00
jesopo
d63294067b find_setting() returns a tuple 2019-11-20 11:53:26 +00:00
jesopo
03e4f780a0 require access for !alias/!calias 2019-11-20 11:39:51 +00:00
jesopo
17edb1c8cb move command aliases out to their own module (aliases.py) 2019-11-20 11:34:36 +00:00
jesopo
2f07c308ea set private NOTICE context so print_activity shows who a notice was sent to 2019-11-19 17:23:23 +00:00
jesopo
77fa2b7b00 separate server name and context name with ":" in print_activity.py 2019-11-19 17:23:00 +00:00
jesopo
2c8a94dc4c show who opened a pull request for pull_request events when appropriate 2019-11-19 17:14:31 +00:00
jesopo
2336695f4e boldify important parts in !help output 2019-11-19 12:31:15 +00:00
jesopo
502dae0d75 'event["comment"]' -> 'data["comment"]' 2019-11-19 12:24:30 +00:00
jesopo
024452bbac expirental code to show comment content for github issue_comment webhooks 2019-11-19 12:22:46 +00:00
jesopo
48cc92cea3 remove double space for youtube views 2019-11-18 18:02:03 +00:00
jesopo
cec260ea3c add optional duration for !ignore 2019-11-18 15:57:27 +00:00
jesopo
65023dc84b move "+5m" syntax parsing out to utils.parse 2019-11-18 15:57:23 +00:00
jesopo
9c4902dcfe "EventsResultsError"->"EventResultsError", move errors to utils.error 2019-11-18 12:06:59 +00:00
jesopo
d1c8357f97 combine both youtube API queries for playlists in to 1 query 2019-11-18 10:55:18 +00:00
jesopo
15e5d7d9bc handle a youtube video having no reported views
closes #203
2019-11-18 10:52:22 +00:00
jesopo
d8ea5e9ce8 combine all 3 youtube API queries in to one (for speed!) 2019-11-18 10:52:01 +00:00
jesopo
0d4ddb709e from_pretty_time was moved to utils.datetime 2019-11-17 19:48:05 +00:00
jesopo
79a6fd6609 refactor lastfm.py 2019-11-15 17:00:38 +00:00
jesopo
90baf17d10 boldify track/artist in !np output 2019-11-15 16:34:28 +00:00
jesopo
982f3b4912 refactor formatting privmsg/notice, show symbols on notice 2019-11-15 15:00:46 +00:00
jesopo
5d01db8514 move all datetime-related code from utils/__init__ to utils.datetime 2019-11-15 13:59:09 +00:00
jesopo
bfcf40edd7 split some stuff out of utils/__init__.py 2019-11-15 13:39:24 +00:00
jesopo
6a55b14afa only try to shlex when we know we've found a command hook 2019-11-15 13:26:11 +00:00
jesopo
64ab4ca1a1 we should be passing args in to _find_command_hook, not args_split 2019-11-15 12:37:43 +00:00
jesopo
27de12bcfe dont use "%s %s"%("thing", "%s") trick - messes up when "thing" has % 2019-11-15 12:29:00 +00:00
jesopo
2cb55306c3 show first-words datestamp on !words output 2019-11-15 12:13:16 +00:00
jesopo
35cdc5321f implement opt-in shlex for command args
closes #202
2019-11-15 11:33:52 +00:00
jesopo
718a026beb don't respond to !botlist automatically 2019-11-15 10:57:29 +00:00
jesopo
7628e6f7fc default target_user to None so the var always exists 2019-11-14 15:48:36 +00:00
jesopo
f188969666 add minimal/normal for "topic set at" lines 2019-11-14 14:32:36 +00:00
jesopo
2fb689494c allow channels to be excluded from print_activity.py 2019-11-14 13:25:41 +00:00
jesopo
a962fcf434 dont print full stacktrace when getting a url's title fails 2019-11-14 13:22:49 +00:00
jesopo
e17e439530 nickname doesn't exist in _on_chghost 2019-11-14 13:17:22 +00:00
jesopo
736c125b98 nickname doesn't exist in _on_part, should be user.nickname 2019-11-14 12:18:11 +00:00
jesopo
b96d8d2d80 typo, 'mode_str' -> 'modes_str' 2019-11-14 12:17:40 +00:00
jesopo
cf5294a835 don't duplicate event["user"].nickname for prettified invite format 2019-11-14 11:59:50 +00:00
jesopo
c5870e3d36 typo, 'prettyb' -> 'pretty 2019-11-14 11:56:57 +00:00
jesopo
9af23c686d pretty will always be in event but it might be None 2019-11-14 11:55:59 +00:00
jesopo
9abc668c0a don't let RSS shortening failure CRITICAL the whole bot 2019-11-14 11:54:10 +00:00
jesopo
160fab8f4f separate formatted lines from pretty formatted lines 2019-11-14 11:48:51 +00:00
jesopo
8ccbeb54d7 Show more fediverse errors to the end user 2019-11-14 10:53:34 +00:00
jesopo
76212faed4 change formatted JOIN to have userhost in parens 2019-11-13 11:19:28 +00:00
jesopo
d06efdabed change formatted NOTICEs to be denoted by "-nick-" (PRIVMSG as "<nick>") 2019-11-11 18:02:15 +00:00