aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/main.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 100af91..2428dff 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -12,6 +12,8 @@ async fn main() {
let mut bot = Bot::new().await.unwrap();
let mut sed = catinator::hooks::sed::Sed::new();
+ let wolfram_alpha = catinator::hooks::wolfram_alpha::WolframAlpha::new(&bot)
+ .expect("failed to initialize WolframAlpha command");
catinator![
hook(
@@ -57,7 +59,7 @@ async fn main() {
async command(
"wa",
"Returns Wolfram Alpha results for a query",
- catinator::hooks::wolfram_alpha::wa
+ wolfram_alpha.wa
),
];
}