Commit graph

16 commits

Author SHA1 Message Date
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