aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.toml2
-rw-r--r--src/lib.rs8
2 files changed, 9 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 00e59e6..1d76cb8 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -7,7 +7,7 @@ edition = "2018"
[dependencies]
macros = { path = "./macros" }
-irc = { version = "0.15", features = ["json", "tls-rust"], default_features = false }
+irc = { version = "0.15", features = ["json", "tls-rust", "ctcp"], default_features = false }
irc-proto = "0.15"
sasl = "0.5"
base64 = "0.13"
diff --git a/src/lib.rs b/src/lib.rs
index 317b06a..ca2451f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -75,4 +75,12 @@ impl Bot {
) -> std::result::Result<(), irc::error::Error> {
self.irc_client.send_notice(target, message)
}
+
+ pub fn send_action(
+ &self,
+ target: &str,
+ message: &str,
+ ) -> std::result::Result<(), irc::error::Error> {
+ self.irc_client.send_action(target, message)
+ }
}
pan>/+1659 2024-08-12add nix build and moduleMax Audron-5/+427 2022-02-19remove jsonnet lock fileMax Audron-36/+0 2022-02-19fix deploy to work with gitlab agentMax Audron-4/+4 2021-10-22write tons of documentation and reorganize some modulesMax Audron-65/+300 2021-10-22remove wolfram alpha url shorteningMax Audron-1/+2 2021-10-20remove failing wolfram alpha test casesMax Audron-105/+55 2021-10-20bump version to 1.6.2Max Audron-3/+2 2021-10-20prepare for release on crates.ioMax Audron-39/+65 2021-10-20add async docs to macro crate and bump versionMax Audron-9/+10 2021-10-20change hook errors to be logged as warningsMax Audron-3/+3 2021-10-20fix configuration not loading correctly on release buildsMax Audron-8/+23 2021-10-19replace sedregex crate8-rework-sedMax Audron-20/+358 2021-10-19add formatting trait for irc codesMax Audron-0/+129 2021-10-17fix links in readmeMax Audron-2/+2