diff --git a/readme.md b/readme.md index 57b6dd2..5c96670 100644 --- a/readme.md +++ b/readme.md @@ -49,7 +49,16 @@ TelitairoBot struct implements Default trait, so you can start a bot with a gene by just doing this: ```rust -let telitairo_bot: TelitairoBot = Default::default(); +let telitairo_bot = TelitairoBot::default(); +``` + +Or partially initialize it like this: + +```rust +let telitairo_bot = TelitairoBot { + personality: String::from("You are a Victorian era, tea addicted assistant"), + ..Default::default(), +} ``` If you want to set your own parameters, you need to specify the personality of the bot as well as its criteria when mitigating an argument. diff --git a/src/main.rs b/src/main.rs index 9b73b84..4d857d8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,7 +5,7 @@ async fn main() { pretty_env_logger::init(); log::info!("Starting bot"); - let telitairo_bot: TelitairoBot = Default::default(); + let telitairo_bot = TelitairoBot::default(); telitairo_bot.dispatch().await; }