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::telegram::main
This commit is contained in:
parent
cde8a5085a
commit
4d5fe654e8
1 changed files with 4 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
//! Module defining the [`main`] function for `patched_porobot_telegram`.
|
//! Module defining the [`main`] function for `patched_porobot_telegram`.
|
||||||
|
|
||||||
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::search::cardsearch::CardSearchEngine;
|
use crate::search::cardsearch::CardSearchEngine;
|
||||||
use crate::telegram::handler::{inline_query_handler, message_handler};
|
use crate::telegram::handler::{inline_query_handler, message_handler};
|
||||||
use log::*;
|
use log::*;
|
||||||
|
@ -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