Commit Graph

7 Commits

Author SHA1 Message Date
737e032783 linkbot: Minor fix with log message
Returned value could be None, so this accounts for that

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-06-23 10:16:46 -07:00
cac2cc20fb Fix linkbot title bug
If an HTML title was parsed with whitespace, it would not strip that
surrounding whitespace. This fixes that.

Also, there are some new debug log messages in linkbot. Hooray!

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-06-23 09:58:12 -07:00
10ffeaf63a Minor fixups in linkbot on the most recent changes for HTML decoding
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-06-01 21:50:22 -07:00
57e1d211a3 Update linkbot to use a fancier parser, and add HTML decoding
* Linkbot parser also looks for <meta> tags and uses an actual HTML
  parser.
* Inner title HTML is decoded before being displayed.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-06-01 21:43:45 -07:00
ffb2d4204e Move message size limit logic to base plugin
This is beneficial for all plugins so the bot doesn't accidentally
spam things because the plugin writer didn't check their inputs

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-05-23 21:11:04 -07:00
3476c06e16 Add message length limit to linkbot plugin
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-05-23 21:06:53 -07:00
48f182e41a Add linkbot and config example for linkbot
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2022-05-23 21:02:51 -07:00