124ed1cf25
urlinfo:generic: be more relaxed with datetime isoformat
2020-11-15 18:51:31 +01:00
e1533bb7e2
orakel: add a spoiler warning for users inspecting the code
2020-11-14 14:39:20 +01:00
503f367a0d
minor script fixes
...
mypy has no fix function so it shouldn't be called as part of the fix
process.
2020-11-14 14:38:09 +01:00
acd1f949d2
urlinfo:generic: improve JSON-LD handling
...
Support (or at least acknowledge) multiple JSON-LD script tags per page
and context tags using HTTP instead of HTTPS.
2020-11-14 14:37:09 +01:00
c798f8d776
allow ElementParser to find multiple matches
2020-11-14 14:33:12 +01:00
76dc9c12af
urlinfo: make youtube-info a submodule for urlinfo
2020-11-14 14:32:46 +01:00
c49083da6a
update example config
2020-11-12 23:45:58 +01:00
7484584fae
add pre-commit git hook (run lint)
2020-11-12 23:45:20 +01:00
87a4daf5c6
orakel: fix typo
2020-11-12 23:44:30 +01:00
76e7969209
feeds: enable updating feeds at different intervals
2020-11-12 23:44:06 +01:00
a96704e1fa
urlinfo:imdb: add thousand separator to rating count display
2020-11-10 21:42:20 +01:00
a8785ef961
urlinfo: split of generic handler into a separate module
...
The new generic handler also supports some generic JSON-LD parsing.
2020-11-10 21:41:43 +01:00
27ecdfad74
urlinfo:imdb: allow TVSeries linked data type
2020-11-10 21:36:13 +01:00
12c08f1026
fix escape_all for Union types with strings
2020-11-10 21:35:06 +01:00
a7c5431ec1
remove any reply preamble from parsed Message
...
Otherwise some message handlers might be thrown off by seeing a trigger
that's actually just the quoted part of a previous message.
The full message body is still always available via the event property.
2020-11-10 21:33:30 +01:00
c58423ae58
add (parsed) html to Message
...
The html tools aren't very sophisticated and maybe we should use sth
like BeautifulSoup instead, but it works for us™ and is much smaller.
2020-11-10 21:30:25 +01:00
d275da418f
roll: allow junk at end of line
...
This enables "fun" stuff like "!roll 20 bottles of milk"
2020-11-10 21:24:41 +01:00
76266d8d2f
make autoflake more aggressive & fix some lint
2020-11-08 10:52:50 +01:00
7c7a1fcde2
fix some mypy lint
2020-11-08 10:50:09 +01:00
9d7d80d3a5
use autoflake to remove unused imports
2020-11-08 01:17:33 +01:00
b7a683c11d
urlinfo:imdb: add support for "CreativeWork" resources
2020-11-07 22:09:36 +01:00
d84f82768d
urlinfo: fix handler selection
2020-11-07 22:08:46 +01:00
15c3cb0221
feed: add support to filter posts
...
The post filter is kept very simple, it works by checking if a fixed
string exists in the configured field. This could easily be expanded
allowing for regex or even more complex filters like date-time
comparisons.
2020-11-07 21:25:36 +01:00
78777a4da9
feeder: only update feeds currently configured
2020-11-07 21:22:36 +01:00
efc6ecbb45
urlinfo: allow sub-modules and add module for IMDb movies
...
The urlinfo plugin is now set up to look up URL information for any URL
occurring in text, not only when triggered explicitly as a command.
The youtube plugin should probably be integrated into this setup,
replacing the bot plugin with a urlinfo extension.
2020-11-07 20:36:31 +01:00
81a176eb0c
minor refactoring
2020-11-07 19:55:34 +01:00
e7009406c6
prost: harden code against unicode input problems
2020-11-07 19:53:36 +01:00
798b339b4b
dm: add new response
2020-11-07 19:53:01 +01:00
51fb1c9f26
dump current state (wip-ish)
2020-11-01 16:31:37 +01:00
0124c35472
init
2020-10-31 16:34:25 +01:00