mirror of
https://github.com/house-of-vanity/desubot.git
synced 2025-07-07 04:34:07 +00:00
Fix /markov in private chats
This commit is contained in:
@ -140,13 +140,23 @@ pub async fn handler(
|
|||||||
.await?
|
.await?
|
||||||
}
|
}
|
||||||
"/markov" => {
|
"/markov" => {
|
||||||
Markov {
|
if title != "PRIVATE" {
|
||||||
data: "".to_string(),
|
Markov {
|
||||||
|
data: "".to_string(),
|
||||||
|
}
|
||||||
|
.exec(&api, &message)
|
||||||
|
.await?
|
||||||
|
} else {
|
||||||
|
let _ = api
|
||||||
|
.send(
|
||||||
|
message
|
||||||
|
.text_reply("Allowed in groups only")
|
||||||
|
.parse_mode(ParseMode::Html),
|
||||||
|
)
|
||||||
|
.await?;
|
||||||
}
|
}
|
||||||
.exec(&api, &message)
|
|
||||||
.await?
|
|
||||||
}
|
}
|
||||||
s if s == "/scheme" || s == "/schema" => {
|
"/scheme" | "/schema" => {
|
||||||
Scheme {
|
Scheme {
|
||||||
data: "".to_string(),
|
data: "".to_string(),
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user