mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-04-18 16:28:55 +00:00
Minor adjustments
This commit is contained in:
parent
91c8ceb91c
commit
d496419fc6
2 changed files with 2 additions and 2 deletions
|
@ -89,7 +89,7 @@ impl OsuAnnouncer {
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.filter(|s: &Score| s.date >= u.last_update)
|
.filter(|s: &Score| s.date >= u.last_update)
|
||||||
.enumerate()
|
.enumerate()
|
||||||
.map(|(i, v)| (i as u8, v))
|
.map(|(i, v)| ((i + 1) as u8, v))
|
||||||
.collect();
|
.collect();
|
||||||
Ok(scores)
|
Ok(scores)
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,7 +58,7 @@ fn main() {
|
||||||
std::thread::spawn(commands::admin::watch_soft_bans(&mut client));
|
std::thread::spawn(commands::admin::watch_soft_bans(&mut client));
|
||||||
|
|
||||||
// Announcers
|
// Announcers
|
||||||
OsuAnnouncer::scan(&client, std::time::Duration::from_secs(60));
|
OsuAnnouncer::scan(&client, std::time::Duration::from_secs(300));
|
||||||
|
|
||||||
println!("Starting...");
|
println!("Starting...");
|
||||||
if let Err(v) = client.start() {
|
if let Err(v) = client.start() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue