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.
9 lines
268 B
Rust
9 lines
268 B
Rust
4 years ago
|
use crate::utils::error::BotResult;
|
||
|
use crate::utils::run_command_async;
|
||
|
|
||
|
/// Runs the qalc command with the given expression
|
||
|
pub async fn qalc(expression: &str) -> BotResult<String> {
|
||
|
let result = run_command_async("qalc", &[expression]).await?;
|
||
|
Ok(result)
|
||
|
}
|