mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-05-24 17:20:49 +00:00
Contest caching
This commit is contained in:
parent
d9536a96ca
commit
75f4e403df
3 changed files with 85 additions and 15 deletions
|
@ -24,6 +24,7 @@ pub use hook::codeforces_info_hook;
|
|||
pub fn setup(path: &std::path::Path, data: &mut ShareMap, announcers: &mut AnnouncerHandler) {
|
||||
CfSavedUsers::insert_into(data, path.join("cf_saved_users.yaml"))
|
||||
.expect("Must be able to set up DB");
|
||||
data.insert::<hook::ContestCache>(hook::ContestCache::default());
|
||||
announcers.add("codeforces", announcer::updates);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue