Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Bacon committed Jun 13, 2024
1 parent 1239c44 commit f7cfcbb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit f7cfcbb

Please sign in to comment.