From 6b30a95fbb9a01ec8d1a73c89ad6439b4385cfdf Mon Sep 17 00:00:00 2001 From: Ryan Lahfa Date: Sat, 21 Sep 2024 00:52:13 +0200 Subject: [PATCH] feat(dgn-chatops): `!pm` shorthand for `!probe_meet` Bumped minor version of Takumi for non-breaking changes. Signed-off-by: Ryan Lahfa --- modules/dgn-chatops/pyproject.toml | 2 +- modules/dgn-chatops/shell.nix | 2 +- modules/dgn-chatops/takumi.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/dgn-chatops/pyproject.toml b/modules/dgn-chatops/pyproject.toml index 84c8c15..0439fb8 100644 --- a/modules/dgn-chatops/pyproject.toml +++ b/modules/dgn-chatops/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "takumi" -version = "1.0.0" +version = "1.1.0" authors = [ { name = "Ryan Lahfa", email = "ryan@dgnum.eu" }, ] diff --git a/modules/dgn-chatops/shell.nix b/modules/dgn-chatops/shell.nix index cf74478..324c55b 100644 --- a/modules/dgn-chatops/shell.nix +++ b/modules/dgn-chatops/shell.nix @@ -5,7 +5,7 @@ let takumi = python3.pkgs.buildPythonPackage rec { pname = "takumi"; - version = "1.0.0"; + version = "1.1.0"; pyproject = true; src = ./.; diff --git a/modules/dgn-chatops/takumi.py b/modules/dgn-chatops/takumi.py index 3efd8a3..918237c 100644 --- a/modules/dgn-chatops/takumi.py +++ b/modules/dgn-chatops/takumi.py @@ -75,7 +75,7 @@ class Server(BaseServer): # In case `!probe_meet <team> <time_1> <time_2> … <time_N> [<timezone>]` if (command := self.extract_valid_command(line)) is not None: text = command.lstrip(TRIGGER) - if text.startswith('probe_meet'): + if text.startswith('probe_meet') or text.startswith('pm'): args = text.split(' ') if len(args) < 4: await self.send(build("PRIVMSG", [line.params[0], "usage is !probe_meet <title> <team> <time_1> [<time_2> <time_3> … <time_N>] ; time is in [00-hour-]DDMMYYYY format."]))