aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2021-05-15 13:58:01 +0200
committerMax Audron <audron@cocaine.farm>2021-05-15 13:58:01 +0200
commitd0bff910b0b038ee85bc285bef7a63870a3474ab (patch)
treeb840d0b932c080fa5d5053b6bf66a91f94a80481 /src/main.rs
init
Diffstat (limited to '')
-rw-r--r--src/main.rs38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
new file mode 100644
index 0000000..10082c3
--- /dev/null
+++ b/src/main.rs
@@ -0,0 +1,38 @@
+#[tokio::main]
+async fn main() {
+ use catinator::catinator;
+
+ tracing_subscriber::fmt()
+ .compact()
+ .with_span_events(tracing_subscriber::fmt::format::FmtSpan::FULL)
+ .with_max_level(tracing::Level::DEBUG)
+ .with_thread_ids(true)
+ .init();
+
+ catinator!(
+ hook(
+ "sasl",
+ "Handle Authentication.",
+ AUTHENTICATE,
+ catinator::hooks::sasl
+ ),
+ hook(
+ "sed_log",
+ "Log messages for use with sed replace, max 10k lines.",
+ PRIVMSG,
+ catinator::hooks::sed::log
+ ),
+ matcher(
+ "shifty_eyes",
+ ">.>",
+ r"^\S{3}$",
+ catinator::hooks::shifty_eyes
+ ),
+ matcher(
+ "replace",
+ "sed style replace with regex support. i/g/U/x sed flags available",
+ r"^s/",
+ catinator::hooks::sed::replace
+ ),
+ );
+}
n> 2024-08-12update powerdns configMax Audron-5/+5 2024-08-12update garage config to 1.0Max Audron-2/+3 2024-08-12update to nixos 24.05Max Audron-27/+21 2024-07-03add acc serverMax Audron-2/+23 2024-03-29add rtmp and laplaceMax Audron-1/+200 2024-03-29add hydra secretsMax Audron-0/+0 2024-03-29add hydra secretsMax Audron-5/+35 2024-03-19extend postgresql hpa for podman ipsMax Audron-1/+1 2024-03-02update authentikMax Audron-8/+6 2024-03-02setup gitea oidcMax Audron-5/+18 2024-02-28add giteaMax Audron-2/+39 2024-02-28remove gitlab moduleMax Audron-25/+0 2024-02-26update d3fus phone wg pubkeyMarcin Maselko-1/+1 2024-02-26added d3fus nass to wg configMarcin Maselko-0/+9 2024-02-21set minecraft memoryMax Audron-0/+1 2024-02-21add minecraft server and move palworld to games moduleMax Audron-3/+56 2024-02-21set network manually for ns serversMax Audron-0/+51 2024-02-20update nixpkgs-unstableMax Audron-3/+3 2024-02-19update d3fus fritzbox wg portMarcin Maselko-1/+1 2024-02-19add xonotic serverMax Audron-1/+10