use strike48_connector::prelude::*;
struct EchoConnector;
#[async_trait]
impl SimpleConnector for EchoConnector {
fn name(&self) -> &str {
"echo"
}
fn version(&self) -> &str {
"1.0.0"
}
async fn handle(&self, request: Value) -> Result<Value> {
Ok(json!({
"success": true,
"echo": request,
"timestamp": chrono::Utc::now().to_rfc3339()
}))
}
}
#[tokio::main]
async fn main() -> Result<()> {
println!("🚀 Starting Echo Connector...");
println!(" This connector echoes back any request it receives.");
println!();
EchoConnector.run().await
}