define const MAIN_BOT_SCRIPT

This commit is contained in:
Akulij 2025-05-27 14:10:48 +05:00
parent 6ac3665dee
commit 77ba6dcfc5

View File

@ -111,6 +111,8 @@ pub struct BotController {
pub runner: Runner, pub runner: Runner,
} }
const MAIN_BOT_SCRIPT: &str = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/mainbot.js"));
impl BotController { impl BotController {
pub async fn new(config: &Config) -> Result<Self, Box<dyn std::error::Error>> { pub async fn new(config: &Config) -> Result<Self, Box<dyn std::error::Error>> {
let bot = Bot::new(&config.bot_token); let bot = Bot::new(&config.bot_token);