diff options
Diffstat (limited to 'src/repl/mod.rs')
| -rw-r--r-- | src/repl/mod.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/repl/mod.rs b/src/repl/mod.rs index 0b74e73..d56b790 100644 --- a/src/repl/mod.rs +++ b/src/repl/mod.rs @@ -79,7 +79,7 @@ lazy_static! { ), ReplCommand::new( ".exit session", - "End the current session", + "End the session", AssertState::True(StateFlags::SESSION_EMPTY | StateFlags::SESSION) ), ReplCommand::new( @@ -105,7 +105,7 @@ lazy_static! { ), ReplCommand::new( ".starter", - "Use converstaion starters", + "Use the conversation starter", AssertState::True(StateFlags::BOT) ), ReplCommand::new( @@ -138,14 +138,13 @@ impl Repl { let editor = Self::create_editor(config)?; let prompt = ReplPrompt::new(config); - - let abort = create_abort_signal(); + let abort_signal = create_abort_signal(); Ok(Self { config: config.clone(), editor, prompt, - abort_signal: abort, + abort_signal, }) } @@ -254,7 +253,8 @@ impl Repl { } ".bot" => match args { Some(name) => { - Config::use_bot(&self.config, name, self.abort_signal.clone()).await?; + Config::use_bot(&self.config, name, None, self.abort_signal.clone()) + .await?; } None => println!(r#"Usage: .bot <name>"#), }, |
