feat: actually get the data for teh committees and pop it in the database

This commit is contained in:
silver 2024-10-28 14:20:36 +00:00
parent aff6299ac7
commit 3e6dc9d560
Signed by: silver
GPG key ID: 36F93D61BAD3FD7D

View file

@ -9,6 +9,7 @@ use std::{process, sync::Arc};
use tokio::sync::RwLock; use tokio::sync::RwLock;
use skynet_discord_bot::common::database::{db_init, DataBase}; use skynet_discord_bot::common::database::{db_init, DataBase};
use skynet_discord_bot::common::wolves::cns::get_wolves; use skynet_discord_bot::common::wolves::cns::get_wolves;
use skynet_discord_bot::common::wolves::committees::get_cns;
#[tokio::main] #[tokio::main]
async fn main() { async fn main() {
@ -48,6 +49,9 @@ impl EventHandler for Handler {
// get the data for each individual club/soc // get the data for each individual club/soc
get_wolves(&ctx).await; get_wolves(&ctx).await;
// get teh data for the clubs/socs committees
get_cns(&ctx).await;
// finish up // finish up
process::exit(0); process::exit(0);
} }