Commit graph

60 commits

Author SHA1 Message Date
jesopo
7e6e40965b comma-separate likes/dislikes for youtube videos 2019-10-25 15:07:30 +01:00
jesopo
ecca7927fe youtube playlist info should be returning URL as a tuple item 2019-10-18 16:40:31 +01:00
jesopo
6d29291f47 also catch m.youtube.com urls 2019-10-15 17:27:02 +01:00
jesopo
513f8a1ddd only show youtu.be url when one was not provided
closes #171
2019-10-08 11:39:14 +01:00
jesopo
896b98bbd1 remove LOW priority from youtube regex - it doesnt need it 2019-09-08 12:21:28 +01:00
jesopo
1340691413 support /embed/<id> youtube urls too 2019-09-07 16:28:18 +01:00
jesopo
50742d336c also url_sanitise youtube urls found with argless !yt commands 2019-09-03 12:07:27 +01:00
jesopo
219382cc3c url_sanitise youtube urls (cut off ")"/">") 2019-09-03 12:05:22 +01:00
jesopo
03c7e8f066 return matching string from buffer.find() as most uses were redundantly regexing 2019-08-13 13:48:03 +01:00
jesopo
9a51ac18ea "!yt" without args should get .message from BufferLine 2019-08-13 13:25:20 +01:00
jesopo
adf8a6ce53 'amd' -> 'and' 2019-07-31 11:59:29 +01:00
jesopo
10b7875544 Support youtu.be urls in _from_url 2019-07-31 11:58:08 +01:00
jesopo
944f32befb refactor youtube.py and handle playlist urls
closes #61
2019-07-26 15:19:24 +01:00
jesopo
ae9d099a41 Refactor set/channelset/serverset/botset in to 'utils.Setting' objects 2019-06-28 23:16:05 +01:00
jesopo
c5785a2d14 implement @utils.kwarg() magic, use it for command.regex hooks 2019-06-26 14:37:41 +01:00
jesopo
98e1202c78 Allow command.regex hooks to opt-in to being triggered from a /me
closes #68
2019-06-16 18:40:25 +01:00
jesopo
268c5adb3c Add depends-on hashflags to relevant modules 2019-05-25 21:40:06 +01:00
jesopo
cf29c37112 Add usage examples for all settings 2019-05-23 10:28:14 +01:00
jesopo
2ff21f5f78 Typo, 'colr' -> 'color' 2019-05-19 21:41:56 +01:00
jesopo
c6f82d3866 green/red the whole of likes/dislikes, not just up/down symbols 2019-05-19 21:39:35 +01:00
jesopo
bf6e4a0e40 green/red color for up/down votes on youtube videos 2019-05-19 17:33:02 +01:00
jesopo
4e0e63e7f8 Hand over regex-based-command responsibilities to commands module 2019-05-18 18:35:47 +01:00
jesopo
9bdd28ce60 Ignore users ignored from !youtube for auto-youtube 2019-05-09 13:43:52 +01:00
jesopo
15fc5f7124 raise EventError when no results are found, to avoid double stderr write (youtube.py) 2019-02-14 01:00:16 +00:00
jesopo
730a4e6b87 Don't use the event system to get results from other modules - use exports 2019-02-09 13:14:45 +00:00
jesopo
3fae5c52cd Forgot to import EventManager (title.py, youtube.py) 2019-02-09 10:57:32 +00:00
jesopo
31367b2b5d Eat youtube URLs on LOW priority, switch auto-title to MONITOR priority 2019-02-09 10:56:06 +00:00
jesopo
0fd180a5c2 'EventResultError' -> 'EventsResultsError' typo (maybe this should actually be
named 'EventResultError') (youtube.py)
2019-01-21 19:32:37 +00:00
jesopo
65db982f1f Show a "failed to load results" error when a video_id search returns no results
(youtube.py)
2019-01-21 19:30:39 +00:00
jesopo
e5a5241615 Only try to regex match a youtube url if we actually have a search string
(youtube.py)
2019-01-11 12:03:23 +00:00
jesopo
59094568e0 Add youtube-safesearch channel setting, to allow channels to opt-in to turning
off any safe search filters (youtube.py)
2019-01-11 11:30:29 +00:00
jesopo
d2fe95e0cc Fix missing change to new Response objects from utils.http.request (youtube.py) 2018-12-12 13:28:54 +00:00
jesopo
793d234a0b 'utils.http.get_url' -> 'utils.http.request', return a Response object from
utils.http.request
2018-12-11 22:26:38 +00:00
jesopo
a3a88d4589 Use more distinctive arrow characters for youtube up/down votes 2018-12-09 21:02:58 +00:00
jesopo
705daaf9bb Don't needlessly search a youtube URL before getting the information for it's
video ID when a URL is provided to !yt
2018-10-29 23:13:32 +00:00
jesopo
8ea6db9422 Standardise "Failed to load results" errors! 2018-10-20 20:53:24 +01:00
jesopo
376825ea96 Mark command hooks that are aliases ('g' vs 'google') 2018-10-10 10:42:41 +01:00
jesopo
69d58eede2 Move src/Utils.py in to src/utils/, splitting functionality out in to modules of
related functionality
2018-10-03 13:22:37 +01:00
jesopo
10ef985a8a Switch to using docstring for usage, permission and require_mode 2018-09-30 17:29:09 +01:00
jesopo
30641ce312 We don't need to explicitly pass "buffer" through on command events 2018-09-30 11:43:34 +01:00
jesopo
6eb8b1ba6d Move all exports to @Utils.export calls 2018-09-27 12:08:07 +01:00
jesopo
51a52e2b0e Switch to using @Utils.hook and docstrings for event hooks 2018-09-26 18:27:17 +01:00
jesopo
ecb9d7cb3f Move most code in root directory to src/ 2018-09-24 15:13:27 +01:00
dngfx
8b8c59ee21 Rename the functions to be more generic. 2018-09-23 10:23:12 +01:00
dngfx
e5283ed2e2 Update last.fm to include a youtube link. Also change the module name to last.fm 2018-09-23 00:55:36 +01:00
jesopo
fcbb7c960c Refactor everything to use delimited events 2018-09-19 13:25:12 +01:00
jesopo
8c6ab17e57 give an Exports object (actually, ExportsContex object) to each module, to
facilitate things like !set and !channelset without using the events system
2018-09-02 19:54:45 +01:00
jesopo
9874f79b49 Give modules event objects with "context"s, to facilitate purging all the event
hooks for a module
2018-08-31 12:55:52 +01:00
jesopo
b699c120a0 Change how specific events assure their hooks gets the event independant of
loading order
2018-08-28 14:55:08 +01:00
jesopo
e5a5fa5c4b modules/logging.py -> IRCLogging.py; IRCLog.py -> IRCBuffer.py; change logging
to be an object on the server object instead of an event call
2018-08-28 12:23:57 +01:00