Added .rl, fixed some messages, removed liveness probe.
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user