feat(tripple): Add tripple meme

This commit is contained in:
andreas 2019-07-02 21:09:10 +02:00
parent 043347c4bb
commit 82102b954e

View File

@ -107,6 +107,13 @@ fn main() {
api.spawn(message.text_reply( api.spawn(message.text_reply(
format!("{} just hit leet! New score: {}", message.from.first_name, *entry) format!("{} just hit leet! New score: {}", message.from.first_name, *entry)
)); ));
let current_leet_count = time_scored_map.iter().filter(|(_,t)| (**t - Local::now()).num_seconds() < allowed_timegap * 2).count();
if current_leet_count == 3 {
api.spawn(message.chat.text("OH BABY A TRIPPLE!!!"));
}
} }
} }