forked from DGNum/infrastructure
feat(dgn-chatops): !pm
shorthand for !probe_meet
Bumped minor version of Takumi for non-breaking changes. Signed-off-by: Ryan Lahfa <ryan@dgnum.eu>
This commit is contained in:
parent
1c6124f376
commit
6b30a95fbb
3 changed files with 3 additions and 3 deletions
|
@ -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" },
|
||||
]
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
let
|
||||
takumi = python3.pkgs.buildPythonPackage rec {
|
||||
pname = "takumi";
|
||||
version = "1.0.0";
|
||||
version = "1.1.0";
|
||||
pyproject = true;
|
||||
|
||||
src = ./.;
|
||||
|
|
|
@ -75,7 +75,7 @@ class Server(BaseServer):
|
|||
# In case `!probe_meet <title> <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."]))
|
||||
|
|
Loading…
Reference in a new issue