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."]))