From ae190cc42167705ed1e92aa8f534c5c5808cf6be Mon Sep 17 00:00:00 2001 From: Micheal Smith Date: Mon, 3 Nov 2025 22:31:13 -0600 Subject: [PATCH] Fixed instruct argument issue. --- src/chat.rs | 9 --------- src/main.rs | 3 ++- src/setup.rs | 2 +- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/src/chat.rs b/src/chat.rs index a7dc643..18beff3 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -60,17 +60,8 @@ impl Chat { client.identify()?; - let outgoing = client - .outgoing() - .ok_or_eyre("Couldn't get outgoing irc sink.")?; let mut stream = client.stream()?; - tokio::spawn(async move { - if let Err(e) = outgoing.await { - event!(Level::ERROR, "Failed to drive output: {}", e); - } - }); - while let Some(message) = stream.next().await.transpose()? { if let Command::PRIVMSG(channel, message) = message.command && message.starts_with("!gem") diff --git a/src/main.rs b/src/main.rs index 7b86a51..8adec4d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -17,7 +17,8 @@ mod setup; const DEFAULT_INSTRUCT: &str = "You are a shady, yet helpful IRC bot. You try to give responses that can - be sent in a single IRC response according to the specification."; + be sent in a single IRC response according to the specification. Keep answers to + 500 characters or less."; #[tokio::main] async fn main() -> Result<()> { diff --git a/src/setup.rs b/src/setup.rs index 4b794e3..3496d3c 100644 --- a/src/setup.rs +++ b/src/setup.rs @@ -104,7 +104,7 @@ pub async fn init() -> Result { .set_override_option("chroot-dir", args.chroot_dir.clone())? .set_override_option("command-path", args.command_dir.clone())? .set_override_option("model", args.model.clone())? - .set_override_option("instruct", args.model.clone())? + .set_override_option("instruct", args.instruct.clone())? .set_override_option("channels", args.channels.clone())? .set_override_option("server", args.server.clone())? .set_override_option("port", args.port.clone())? // FIXME: Make this a default here not in clap.