mirror of
https://github.com/house-of-vanity/desubot.git
synced 2025-08-21 15:27:14 +00:00
Fixing shit
This commit is contained in:
committed by
GitHub
parent
0bcb99089b
commit
28cdf4be2e
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "desubot"
|
name = "desubot"
|
||||||
version = "0.5.11"
|
version = "0.5.12"
|
||||||
authors = ["AB <ab@hexor.ru>"]
|
authors = ["AB <ab@hexor.ru>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
|
@@ -477,7 +477,8 @@ impl Execute for Markov {
|
|||||||
chain.feed(messages);
|
chain.feed(messages);
|
||||||
let mut sentences = chain.generate();
|
let mut sentences = chain.generate();
|
||||||
let mut msg = String::new();
|
let mut msg = String::new();
|
||||||
for _ in 1..rand::thread_rng().gen_range(2, 10) {
|
let count = rand::thread_rng().gen_range(3..10);
|
||||||
|
for _ in 1..count {
|
||||||
msg = format!("{} {}", msg, sentences.pop().unwrap_or(" ".into()));
|
msg = format!("{} {}", msg, sentences.pop().unwrap_or(" ".into()));
|
||||||
}
|
}
|
||||||
match api
|
match api
|
||||||
|
Reference in New Issue
Block a user