discord-bot/src/bin/update_data.rs

14 lines
282 B
Rust
Raw Normal View History

use skynet_discord_bot::{db_init, get_config, get_data::get_wolves};
#[tokio::main]
async fn main() {
let config = get_config();
let db = match db_init(&config).await {
Ok(x) => x,
Err(_) => return,
};
2023-09-16 18:47:39 +00:00
// handle wolves api here
2023-10-27 00:39:03 +00:00
get_wolves(&db, &config).await;
2023-09-16 18:47:39 +00:00
}