From 4768181d397e6885f27df71852b462deece0abc6 Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Thu, 3 Feb 2022 19:12:27 +0200 Subject: [PATCH] bump version --- CHANGELOG.md | 5 +++++ Cargo.lock | 8 ++++---- README.md | 4 ++++ src/bot/commands/help.rs | 2 ++ 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 05a804af..507086d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ description = "Changelog" weight = 3 +++ +## 0.5.0 (2022-02-03) + +- Remove custom templates (handlebars can be used directly) ([#196](https://github.com/ayrat555/el_monitorro/pull/196)) +- Add `remove_filter`, `remove_template`, `remove_global_template` ([#197](https://github.com/ayrat555/el_monitorro/pull/197)) + ## 0.4.0 (2022-01-22) - Migrate from html2text to nanohtml2text ([#189](https://github.com/ayrat555/el_monitorro/pull/189)) diff --git a/Cargo.lock b/Cargo.lock index 1dff91ef..6b88ca06 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -521,9 +521,9 @@ dependencies = [ [[package]] name = "frankenstein" -version = "0.9.4" +version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0ec50331d6f6b7878f78a97e817cc8b8280d9ed62d034867883428148e4922a" +checksum = "2d102f2c3d452881287195bfc7520705491c5874a9d20da4a4f594ad297d17fd" dependencies = [ "derive_builder", "serde", @@ -738,9 +738,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.116" +version = "0.2.117" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "565dbd88872dbe4cc8a46e527f26483c1d1f7afa6b884a3bd6cd893d4f98da74" +checksum = "e74d72e0f9b65b5b4ca49a346af3976df0f9c61d550727f349ecd559f251a26c" [[package]] name = "libnghttp2-sys" diff --git a/README.md b/README.md index a618278a..e7db3edc 100644 --- a/README.md +++ b/README.md @@ -50,8 +50,12 @@ Example: /set_template https://www.badykov.com/feed.xml {{bot_feed_name}} /get_template url - get a template for the subscription +/remove_template url - remove the template + /set_global_template - set global template. This template will be used for all subscriptions. If the subscription has its own template, the subscription template will be used. See /set_template for available fields. +/remove_global_template - remove global template + /get_global_template - get global template /get_filter url - get a filter for the subscription diff --git a/src/bot/commands/help.rs b/src/bot/commands/help.rs index 9c397cf2..62b6fcaf 100644 --- a/src/bot/commands/help.rs +++ b/src/bot/commands/help.rs @@ -22,7 +22,9 @@ static HELP: &str = - bot_date - publication date of the feed\n\ Example: /set_template https://www.badykov.com/feed.xml {{bot_feed_name}}\n\n\n{{bot_item_name}}\n\n\n{{bot_date}}\n\n\n{{bot_item_link}}\n\n\ /get_template url - get the template for the subscription\n\n\ + /remove_template url - remove the template\n\n\ /set_global_template template - set global template. This template will be used for all subscriptions. If the subscription has its own template, it will be used instead. See /set_template for available fields.\n\n\ + /remove_global_template - remove global template\n\n\ /get_global_template - get global template\n\n\ /get_filter url - get the filter for the subscription\n\n\ /set_filter url template - set filter, for example, /set_filter https://www.badykov.com/feed.xml telegram,bots. You'll start receiving posts only containing words in the filter. Use `!word` to stop receiving messages containing the specified `word`. You can combine regular filter words with ! filter words. For example, `!bot,telegram`\n\n\