This commit is contained in:
Neshura 2023-07-31 22:52:48 +02:00
parent 9d79508687
commit e7f971ccd8
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

View file

@ -135,7 +135,7 @@ impl Bot {
pub(crate) fn idle(&self) {
let mut sleep_duration = chrono::Duration::seconds(30);
if Utc::now().time() - self.start_time.time() < sleep_duation {
if Utc::now().time() - self.start_time.time() < sleep_duration {
sleep_duration = chrono::Duration::seconds(60);
}
while Utc::now().time() - self.start_time.time() < sleep_duration {