1
Fork 0
mirror of https://github.com/Steffo99/patched-porobot.git synced 2024-10-16 09:37:27 +00:00

Use the two previous functions in crate::discord::main

This commit is contained in:
Steffo 2023-03-21 15:39:57 +01:00
parent 4d5fe654e8
commit 384d209b5c
Signed by: steffo
GPG key ID: 2A24051445686895

View file

@ -3,8 +3,8 @@
use std::env;
use log::*;
use serenity::prelude::*;
use crate::data::corebundle::create_globalindexes_from_wd;
use crate::data::setbundle::create_cardindex_from_wd;
use crate::data::corebundle::{create_globalindexes_from_dd_latest_en_us, create_globalindexes_from_wd};
use crate::data::setbundle::{create_cardindex_from_dd_latest_en_us, create_cardindex_from_wd};
use crate::discord::handler::EventHandler;
use crate::search::cardsearch::CardSearchEngine;
@ -14,11 +14,11 @@ pub async fn main() {
debug!("Logger initialized successfully!");
debug!("Creating LocalizedGlobalIndexes...");
let globals = create_globalindexes_from_wd();
let globals = create_globalindexes_from_dd_latest_en_us().await;
debug!("Created LocalizedGlobalIndexes!");
debug!("Creating CardIndex...");
let cards = create_cardindex_from_wd();
let cards = create_cardindex_from_dd_latest_en_us().await;
debug!("Created CardIndex!");
debug!("Creating CardSearchEngine...");