mirror of
https://github.com/Steffo99/patched-porobot.git
synced 2024-12-23 01:54:22 +00:00
Use the two previous functions in crate::discord::main
This commit is contained in:
parent
4d5fe654e8
commit
384d209b5c
1 changed files with 4 additions and 4 deletions
|
@ -3,8 +3,8 @@
|
||||||
use std::env;
|
use std::env;
|
||||||
use log::*;
|
use log::*;
|
||||||
use serenity::prelude::*;
|
use serenity::prelude::*;
|
||||||
use crate::data::corebundle::create_globalindexes_from_wd;
|
use crate::data::corebundle::{create_globalindexes_from_dd_latest_en_us, create_globalindexes_from_wd};
|
||||||
use crate::data::setbundle::create_cardindex_from_wd;
|
use crate::data::setbundle::{create_cardindex_from_dd_latest_en_us, create_cardindex_from_wd};
|
||||||
use crate::discord::handler::EventHandler;
|
use crate::discord::handler::EventHandler;
|
||||||
use crate::search::cardsearch::CardSearchEngine;
|
use crate::search::cardsearch::CardSearchEngine;
|
||||||
|
|
||||||
|
@ -14,11 +14,11 @@ pub async fn main() {
|
||||||
debug!("Logger initialized successfully!");
|
debug!("Logger initialized successfully!");
|
||||||
|
|
||||||
debug!("Creating LocalizedGlobalIndexes...");
|
debug!("Creating LocalizedGlobalIndexes...");
|
||||||
let globals = create_globalindexes_from_wd();
|
let globals = create_globalindexes_from_dd_latest_en_us().await;
|
||||||
debug!("Created LocalizedGlobalIndexes!");
|
debug!("Created LocalizedGlobalIndexes!");
|
||||||
|
|
||||||
debug!("Creating CardIndex...");
|
debug!("Creating CardIndex...");
|
||||||
let cards = create_cardindex_from_wd();
|
let cards = create_cardindex_from_dd_latest_en_us().await;
|
||||||
debug!("Created CardIndex!");
|
debug!("Created CardIndex!");
|
||||||
|
|
||||||
debug!("Creating CardSearchEngine...");
|
debug!("Creating CardSearchEngine...");
|
||||||
|
|
Loading…
Reference in a new issue