Denis Laxalde
8220bcedf6
Fix required=True not accounted for for simple argument
...
CommandHandler.__parse_args__ checks for the None value returned Argument.match() to possibly raise
if no value got passed to a *required* argument. Unfortunately, SimpleArgument.match() never
returns None but would instead return the empty string it receives (which is being stripped by
the caller, __parse_args__()). As such, `@argument(..., required=True)` does not work and silently
passes an empty string to the command handler.
We fix this returning None early in SimpleArgument.match() when it receives an empty string value.
2023-06-16 10:00:00 +02:00
Tulir Asokan
b4e8e5bfbb
Merge pull request #213 from sumnerevans/master
...
standalone/Dockerfile: update to latest alpine
2023-04-29 00:34:57 +03:00
Sumner Evans
bf8ae9eb5a
standalone/Dockerfile: update to latest alpine
...
Signed-off-by: Sumner Evans <sumner@beeper.com>
2023-04-28 15:31:00 -06:00
Tulir Asokan
184d6b8eed
Update mautrix-python
2023-04-07 15:37:32 +03:00
Tulir Asokan
c2648be1e3
Bump version to 0.4.1
2023-03-15 20:00:31 +02:00
Tulir Asokan
aaf32d8820
Update mautrix-python
2023-03-13 16:01:44 +02:00
Tulir Asokan
c9282b93f4
Fix serving static files. Fixes #206
2023-03-06 15:49:51 +02:00
Tulir Asokan
719c9c5dd0
Update changelog
2023-02-26 16:15:23 +02:00
Tulir Asokan
d4bb502def
Add docstrings for MaubotMessageEvent methods
2023-02-14 22:11:14 +02:00
Tulir Asokan
def923d444
Adjust thread behavior when responding
2023-02-14 22:11:11 +02:00
Tulir Asokan
7156594858
Fix import order
2023-02-12 12:53:19 +02:00
Tulir Asokan
e73869bb19
Use new wrapper for creating background tasks
2023-02-12 12:51:19 +02:00
Tulir Asokan
c0c7b58a3f
Update linters
2023-02-12 12:45:48 +02:00
Tulir Asokan
955fb2723e
Update black
2023-02-05 23:09:07 +02:00
Tulir Asokan
41cbf6d788
Expose plugin metadata in standalone mode loader
2023-02-05 22:34:54 +02:00
Tulir Asokan
f0e2bb3d62
Add option to use thread for replies
2023-01-31 16:35:56 +02:00
Tulir Asokan
bf3a3b65d8
Bump version to 0.4.0
2023-01-29 17:13:52 +02:00
Tulir Asokan
f87e4ca7b9
Update gitignore
2023-01-05 00:37:47 +02:00
Tulir Asokan
ada4978879
Update changelog
2023-01-05 00:31:05 +02:00
Tulir Asokan
e99a13a391
Drop support for custom API paths
...
Changing the base public URL is still possible (which may be useful
if someone wants to use a reverse proxy without adding subdomains).
Fixes #195
2023-01-05 00:27:31 +02:00
Tulir Asokan
6fd8f7ed00
Update dependencies and alpine
2022-12-31 02:28:10 +02:00
Tulir Asokan
535b6672a6
Update README.md
2022-12-29 18:33:15 +02:00
Tulir Asokan
a46edac3b7
Merge pull request #194 from williamkray/wreck/more-plugins-20221220
...
add several of my plugins
2022-12-20 22:39:56 +02:00
William Kray
7ec58c6347
add several of my plugins
2022-12-20 12:20:56 -08:00
Tulir Asokan
e6242735d3
Merge pull request #177 from half-duplex/mca-copy
...
Fix must_consume_args
2022-11-22 14:34:36 +02:00
Tulir Asokan
55ffe54fa0
Merge pull request #182 from tobias47n9e/bugfix/mbc-init-spdx
...
Fix choosing SPDX license during plugin init
2022-11-22 14:33:52 +02:00
Tulir Asokan
db40201463
Merge remote-tracking branch 'spaetz/spaetz-redactbot'
2022-11-22 14:31:39 +02:00
Tulir Asokan
6e7f1a8710
Merge remote-tracking branch 'yoxcu/master'
2022-11-22 14:31:21 +02:00
Tulir Asokan
d2cef271c1
Merge remote-tracking branch 'v411e/add-bots-to-README'
2022-11-22 14:31:00 +02:00
Tulir Asokan
2a83376e9b
Merge remote-tracking branch 'moan0s/alertbot'
2022-11-22 14:30:31 +02:00
Tulir Asokan
8f5b9e3802
Merge remote-tracking branch 'babolivier/patch-1'
2022-11-22 14:30:06 +02:00
Tulir Asokan
a21b106c71
Update changelog
...
[skip ci]
2022-11-05 23:51:24 +02:00
Sebastian Spaeth
6f20151a89
Add redactbot
...
Add 3rd party redactbot
2022-10-25 11:46:05 +02:00
yoxcu
cab88d153b
Added token bot to README
2022-10-18 02:45:30 +02:00
Tulir Asokan
7904888233
Update mautrix-python and asyncpg
2022-10-10 19:01:56 +03:00
Tulir Asokan
fbacad8676
Add shortcut for redact in MaubotMessageEvent
2022-09-12 21:22:33 +03:00
Tulir Asokan
d574f84079
Fix saving plugin configs
2022-08-20 14:37:31 +03:00
Tobias Schönberg
33d7892e13
Fix choosing SPDX license during plugin init
...
The keys used to be lower case, but were changed to mixed case
in this commit:
068e268c63
The identfier are now used as inputted by the user.
2022-08-14 21:53:19 +02:00
Tulir Asokan
1fe53b4c56
Fix SSO login path
2022-08-14 18:51:19 +03:00
Valentin Rieß
305faa0583
Add bots to README
2022-07-27 13:45:30 +02:00
Trevor Bergeron
bfdd52502a
Fix must_consume_args
2022-07-21 22:46:48 -04:00
Brendan Abolivier
30e67111b1
Add autoreply to the list of third-party plugins
2022-07-19 12:44:05 +02:00
Julian-Samuel Gebühr
75574c267b
Add alertbot to plugin list
2022-07-11 15:15:47 +02:00
Tulir Asokan
4f4d7bc342
Update mautrix-python
2022-07-10 14:42:41 +03:00
Tulir Asokan
47d7e2b483
Remove legacy alembic command in docker/run.sh
2022-06-24 18:21:53 +03:00
Tulir Asokan
47d499dac8
Use PYTHONPATH instead of cd in docker mbc wrapper. Fixes #172
2022-06-19 14:24:16 +03:00
Tulir Asokan
e0daeeafc6
Add GitLab CI file used by all plugins
2022-06-19 14:23:06 +03:00
Tulir Asokan
6ec653c69f
Bump mautrix-python version
2022-05-27 22:48:23 +03:00
Tulir Asokan
f74a67dd79
Store instance database engine in database
2022-05-27 22:48:23 +03:00
Tulir Asokan
0663b680ab
Fix typo in pre commit config
2022-05-27 22:48:23 +03:00