From fb20b36b187819f0b0974ba77419907d77d19b30 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Mon, 28 Apr 2025 00:46:59 -0400 Subject: [PATCH] feat(data/bots): add two example IRC bots Signed-off-by: Xe Iaso --- data/bots/irc-bots/archlinux-phrik.yaml | 9 +++++++++ data/bots/irc-bots/gentoo-chat.yaml | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 data/bots/irc-bots/archlinux-phrik.yaml create mode 100644 data/bots/irc-bots/gentoo-chat.yaml diff --git a/data/bots/irc-bots/archlinux-phrik.yaml b/data/bots/irc-bots/archlinux-phrik.yaml new file mode 100644 index 00000000..ecbc8cbb --- /dev/null +++ b/data/bots/irc-bots/archlinux-phrik.yaml @@ -0,0 +1,9 @@ +# phrik in the Arch Linux IRC channels +- name: archlinux-phrik + action: ALLOW + expression: + all: + - remoteAddress == "159.69.213.214" + - userAgent == "Mozilla/5.0 (compatible; utils.web Limnoria module)" + - '"X-Http-Version" in headers' + - headers["X-Http-Version"] == "HTTP/1.1" \ No newline at end of file diff --git a/data/bots/irc-bots/gentoo-chat.yaml b/data/bots/irc-bots/gentoo-chat.yaml new file mode 100644 index 00000000..92f2a4f5 --- /dev/null +++ b/data/bots/irc-bots/gentoo-chat.yaml @@ -0,0 +1,9 @@ +# chat in the gentoo IRC channels +- name: gentoo-chat + action: ALLOW + expression: + all: + - remoteAddress == "45.76.166.57" + - userAgent == "Mozilla/5.0 (Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0" + - '"X-Http-Version" in headers' + - headers["X-Http-Version"] == "HTTP/1.1" \ No newline at end of file