From 338f612129feabf5b6cae28396115c94a0f2b8c2 Mon Sep 17 00:00:00 2001 From: Jordan Bracco Date: Wed, 25 Jun 2025 17:12:20 +0200 Subject: update otp --- lib/plugins/preums.ex | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/plugins') diff --git a/lib/plugins/preums.ex b/lib/plugins/preums.ex index ac5da20..5891ab3 100644 --- a/lib/plugins/preums.ex +++ b/lib/plugins/preums.ex @@ -37,8 +37,6 @@ defmodule Nola.Plugins.Preums do require Logger - @perfects [~r/preum(s|)/i] - # dets {{chan, day = {yyyy, mm, dd}}, nick, now, perfect?, text} def all(dets) do @@ -291,7 +289,7 @@ defmodule Nola.Plugins.Preums do [] -> # Preums won! - perfect? = Enum.any?(@perfects, fn perfect -> Regex.match?(perfect, text) end) + perfect? = Enum.any?([~r/preum(s|)/i], fn perfect -> Regex.match?(perfect, text) end) item = {key, m.account.id, now, perfect?, text} :dets.insert(state.dets, item) :dets.sync(state.dets) -- cgit v1.2.3