2023-12-22 09:21:49 -05:00
|
|
|
/*
|
|
|
|
`modules` will :
|
|
|
|
- be a starting refrence point for the bot instance to pull module definitions for
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
//mod crate::core::botmodules;
|
|
|
|
// use crate::core::botmodules;
|
|
|
|
pub use crate::core::botmodules::ModulesManager;
|
|
|
|
|
|
|
|
// use crate::core::botinstance;
|
|
|
|
pub use crate::core::botinstance::BotInstance;
|
2024-03-01 23:36:37 -05:00
|
|
|
// use futures::lock::Mutex;
|
2024-02-25 10:40:54 -05:00
|
|
|
use std::sync::Arc;
|
2023-12-22 09:21:49 -05:00
|
|
|
|
|
|
|
// [ ] Load submodules
|
|
|
|
|
|
|
|
mod experiments;
|
|
|
|
|
|
|
|
// [ ] init() function that accepts bot instance - this is passed to init() on submodules
|
|
|
|
|
2024-02-25 10:40:54 -05:00
|
|
|
pub async fn init(mgr: Arc<ModulesManager>) {
|
2023-12-22 09:21:49 -05:00
|
|
|
// Modules initializer loads modules into the bot
|
|
|
|
// this is achieved by calling submodules that also have fn init() defined
|
|
|
|
|
2024-02-25 10:40:54 -05:00
|
|
|
experiments::init(mgr).await
|
2023-12-22 09:21:49 -05:00
|
|
|
|
2024-01-27 13:35:55 -05:00
|
|
|
//();
|
2024-02-25 10:40:54 -05:00
|
|
|
}
|