Added .rl, fixed some messages, removed liveness probe.

This commit is contained in:
2023-02-21 22:53:31 +00:00
parent 9b6308ecc0
commit fe2a863bc5
5 changed files with 60 additions and 7 deletions

View File

@ -20,7 +20,7 @@ use super::{
get_chat_id::GetChatId,
help::Help,
},
fun::{blyaficator::Blyaficator, greeter::Greeter},
fun::{blyaficator::Blyaficator, greeter::Greeter, rotator::Rotator},
Handler,
},
};
@ -104,12 +104,17 @@ async fn run(args: BotConfig, client: Client) -> anyhow::Result<()> {
.add_filter(TextFilter(&[".cid"], TextMatchMethod::IMatches)),
// Make бля fun again.
FilteredHandler::new(Blyaficator)
.add_filter(SilentFilter)
.add_filter(TextFilter(&[".bl"], TextMatchMethod::IStartsWith)),
// Handler for converting currecies.
FilteredHandler::new(CurrencyConverter::new()?)
.add_filter(SilentFilter)
.add_filter(ExcludedChatsFilter(args.currency_excluded_chats))
.add_filter(CurrencyTextFilter),
// Simlpe rotator.
FilteredHandler::new(Rotator)
.add_filter(SilentFilter)
.add_filter(TextFilter(&[".rl"], TextMatchMethod::IStartsWith)),
];
loop {