You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2b-rs/src/providers/qalc.rs

11 lines
347 B
Rust

use bot_coreutils::process::run_command_async;
use crate::utils::error::BotResult;
use bot_coreutils::string::enquote;
/// Runs the qalc command with the given expression
pub async fn qalc(expression: &str) -> BotResult<String> {
let result = run_command_async("qalc", &["-m", "1000", enquote(expression).as_str()]).await?;
Ok(result)
}