Commit graph

23 commits

Author SHA1 Message Date
jesopo
9c4902dcfe "EventsResultsError"->"EventResultsError", move errors to utils.error 2019-11-18 12:06:59 +00: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
7ccfa12b00 event["channel"] -> event["target"] (from regex-commands change) 2019-05-18 21:33:50 +01:00
jesopo
6f0b31cb9a Switch imgur.py to use command.regex system 2019-05-18 19:20:09 +01:00
jesopo
5eceb5655c Minor code stylisation in imgur.py 2019-02-25 09:59:38 +00:00
dngfx
6471360656
Update imgur.py 2019-02-25 09:01:52 +00:00
Dan
6771c3fec1 Switch to elif 2019-02-24 21:14:08 +00:00
Dan
ccd924d9e7 Remove superfluous json import and change datetime to match code standards. 2019-02-24 21:13:02 +00:00
Dan
4daba2b1ac Remove bold title, set NSFW_TEXT variable, fix bold spacing, fix PEP8 line breaks between definitions. Remove _imgur def and hook straight into code. 2019-02-24 21:10:25 +00:00
dngfx
0444f9c0b9
Update imgur.py
Remove debug logging cruft
2019-02-24 20:37:17 +00:00
dngfx
266cbbfe1e
Update imgur.py
Add auto-imgur for auto linking of imgur and make the linking a bit fancier.
2019-02-24 20:34:10 +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
18d055bb9e Check if a url is a gallery first, 'event' -> 'data' typo, actually return from
_prefix
2018-10-31 17:54:44 +00:00
jesopo
04e369a92d Use gallery API endpoint for gallery urls 2018-10-31 17:44:21 +00:00
jesopo
ff1d4da362 Support galleries in modules/imgur.py 2018-10-31 17:41:12 +00:00
jesopo
8212fc51eb imgur url hashids aren't always 7 characters 2018-10-31 16:29:24 +00:00
jesopo
bf6a740f7b Fix typo in modules/imgur.py that caused headers passed to utils.http.get_url
to be a set, not a dict. (',' -> ':')
2018-10-31 16:17:22 +00:00
jesopo
0066cb313e REGEX_IMAGE should be a compiled regex! 2018-10-31 16:16:31 +00:00
jesopo
f073613848 Add first version of modules/imgur.py 2018-10-31 16:12:28 +00:00