define const MAIN_BOT_SCRIPT
This commit is contained in:
parent
6ac3665dee
commit
77ba6dcfc5
@ -111,6 +111,8 @@ pub struct BotController {
|
||||
pub runner: Runner,
|
||||
}
|
||||
|
||||
const MAIN_BOT_SCRIPT: &str = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/mainbot.js"));
|
||||
|
||||
impl BotController {
|
||||
pub async fn new(config: &Config) -> Result<Self, Box<dyn std::error::Error>> {
|
||||
let bot = Bot::new(&config.bot_token);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user