Commit graph

374 commits

Author SHA1 Message Date
Tulir Asokan
a699acc049 Allow setting initial device name in mbc auth 2021-11-19 23:08:41 +02:00
Tulir Asokan
e1a1f7b65e Update rest of maubot-cli HTTP requests to asyncio 2021-11-19 21:45:30 +02:00
Tulir Asokan
3585ed9456 Fix avatar URLs without mxc:// looking like they work when they actually don't. Fixes #85 2021-11-19 19:53:29 +02:00
Tulir Asokan
ae7e9693fc Maybe allow disabling e2ee by removing device ID 2021-11-19 19:46:48 +02:00
Tulir Asokan
b8ef048a3a Show E2EE fingerprint in client view 2021-11-19 19:34:17 +02:00
Tulir Asokan
47969e5661 Allow setting e2ee device ID in frontend 2021-11-19 19:29:30 +02:00
Tulir Asokan
80c8aba8f6 Fix some bugs related to relogin 2021-11-19 19:14:20 +02:00
Tulir Asokan
85e5ea401c Add option to create/update client with mbc auth 2021-11-19 17:10:51 +02:00
Tulir Asokan
8c3e3a3255 Improve config comments and errors with mbc auth 2021-11-19 15:41:26 +02:00
Tulir Asokan
61711e8329 Fix things in standalone mode 2021-11-19 15:23:10 +02:00
Tulir Asokan
7c9668d8bc Refactor __main__.py and fix things 2021-11-19 15:22:54 +02:00
Tulir Asokan
c685eb5e08 Add missing imports 2021-11-09 01:56:36 +02:00
Tulir Asokan
84152b1c28 Install pip in standalone dockerfile 2021-11-09 01:41:47 +02:00
Tulir Asokan
92b3481828 Update standalone dockerfile and add support for config via env vars 2021-11-09 01:39:28 +02:00
Joel Beckmeyer
026fdacb59 refactor PyInquirer to questionary 2021-10-13 15:56:38 -04:00
Tulir Asokan
adf28312df Replace _ with - in default command names 2021-09-10 22:18:30 +03:00
Tulir Asokan
0a47d1929a Don't re-wrap events if they're re-dispatched 2021-09-08 20:31:40 +03:00
DeepBlueV7.X
235ce89df1
Fix crypto db not working with scheme postgresql
The postgres:// scheme does not work in sqlalchemy 1.4 or higher.
Support for postgresql:// was added in 1.1.
I updated by config file and suddenly my encryption didn't work anymore,
which confused me quite a bit.

See: https://docs.sqlalchemy.org/en/14/changelog/changelog_14.html#change-3687655465c25a39b968b4f5f6e9170b
2021-07-12 15:56:29 +00:00
Tulir Asokan
cb6cb6d372 Update mautrix-python 2021-06-18 21:03:52 +03:00
Tulir Asokan
3a5f2ede91 Bump version to 0.1.2 2021-06-12 14:09:36 +03:00
Tulir Asokan
6487a7a8a5 Let plugins read their own files directly 2021-06-11 16:03:52 +03:00
Tulir Asokan
8f806a2594 Add warning if webapp is disabled when using @web decorators. Fixes #65 2021-06-11 12:42:06 +03:00
Tulir Asokan
b7f6c08b2b Add support for reloading webapp and database meta flags 2021-06-11 12:41:51 +03:00
Tulir Asokan
dcd2c3b5de Update Fira Code bundled in frontend to v5.2 2021-06-11 11:57:59 +03:00
Tulir Asokan
a685448887 Update frontend dependencies 2021-06-11 11:57:40 +03:00
Tulir Asokan
b2018d9ae9 Decrypt events in get_event. Fixes #123 2021-06-11 11:06:28 +03:00
Tulir Asokan
543f8dbf78 Fix registering accounts with shared secret. Fixes #107 2021-06-11 11:06:25 +03:00
Tulir Asokan
92a14f20f6 Fix getting name of function for command handlers 2021-06-08 11:44:34 +03:00
Tulir Asokan
2f7c20dffd Bump version to 0.1.1 2021-05-02 19:07:48 +03:00
Tulir Asokan
dc46b81812 Fix long client names overflowing 2021-04-11 12:44:48 +03:00
Tulir Asokan
13aaedfad9 Fix some type hints 2021-04-11 12:44:48 +03:00
Tulir Asokan
a078bdd120 Retry client connection more times on startup 2021-04-03 15:39:58 +03:00
Tulir Asokan
639fcda5d8 Move docs to docs.mau.fi 2021-04-03 15:37:22 +03:00
Tulir Asokan
cfa831c463 Improve usage when base command has no arguments 2020-10-25 19:30:37 +02:00
Tulir Asokan
ba4fc26ea7 Maybe improve help stuff 2020-10-25 19:21:17 +02:00
Tulir Asokan
e3aba7f26d Require command arguments to be fully consumed 2020-10-25 18:58:28 +02:00
Tulir Asokan
c22e8e0f63 Bump version to 0.1.0 2020-10-04 14:08:30 +03:00
Tulir Asokan
9d3a4b16bd Update mautrix-python to fix bugs 2020-08-23 14:25:29 +03:00
Tulir Asokan
c614f8c8ca Merge branch 'nicer-plaintext-links' 2020-08-02 21:08:13 +03:00
Tulir Asokan
69d7a4341b Add support for end-to-end encryption. Fixes #46 2020-07-12 14:55:41 +03:00
Tulir Asokan
4e767a10e4 Check for none instead of falsy in arg matching 2020-07-11 16:23:00 +03:00
Tulir Asokan
03a1fdaaf5 Stop passing loop to asyncio.gather 2020-07-11 16:22:38 +03:00
Tulir Asokan
09108f6a73 Add device_id to client db 2020-07-11 16:22:27 +03:00
Tulir Asokan
9578883bbb Update frontend deps 2020-07-11 16:21:36 +03:00
Tulir Asokan
37eeb73c47 Add option for listing auth servers 2020-07-11 16:21:13 +03:00
Tulir Asokan
3836ff59bf Fix color logging import 2020-06-16 18:57:25 +03:00
Tulir Asokan
6960382aeb Fix mistake 2020-05-08 12:37:05 +03:00
Tulir Asokan
341b3db99e Make parse_formatted output links in a nicer way than markdown 2020-05-08 11:49:56 +03:00
Tulir Asokan
98eeb6a808 Don't throw error if CLI config is missing keys 2020-04-28 17:37:28 +03:00
Tulir Asokan
6b5dedb29f Add better error message for registration target server not found 2020-04-22 23:31:37 +03:00
Tulir Asokan
4b88971b3b Update type hint in spdx.py 2020-04-22 23:10:06 +03:00
Tulir Asokan
593f2ae1d8 Add maubot server alias feature
This means you can add an alias for a maubot server when logging in,
and then use that alias instead of typing the full URL each time.

Mostly useful for people with more than one maubot instance, as the
default server already didn't need to be typed out each time.
2020-04-22 23:09:07 +03:00
Tulir Asokan
6e075c88fa URL-encode params in mbc auth to prevent weird errors 2020-04-22 23:08:32 +03:00
Tulir Asokan
79fe991daf Force instance ID to be lowercase when updating 2020-04-22 22:40:43 +03:00
Tulir Asokan
2881344489 Fix incorrect parameter for generate_mac 2020-04-09 10:45:52 +03:00
Tulir Asokan
8409b2a5bb Try to make log collector thread safe 2020-04-05 16:39:33 +03:00
Tulir Asokan
aac1f267d7 Fix exception when running subcommand without enough arguments 2020-03-25 21:26:17 +02:00
Tulir Asokan
798f5da5de Add option to disable online status for bots 2020-03-06 15:09:42 +02:00
Tulir Asokan
4aada15bbe
Merge pull request #86 from Half-Shot/patch-1
User types should be part of the hmac
2020-03-04 15:34:32 +02:00
Will Hunt
c4aee0d1eb
Update client_auth.py 2020-03-04 13:31:45 +00:00
Tulir Asokan
4c2d198387 Bump version to 0.1.0.beta1 2020-03-01 14:21:44 +02:00
Tulir Asokan
d2afc7cee4 Improve standalone dockerfile for caching 2020-03-01 14:08:16 +02:00
Tulir Asokan
293b44729c Try to make commands case insensitive. Should fix #83 2020-02-25 22:33:19 +02:00
Will Hunt
ec58900cf2
Actually use user_type, and make it default to "bot" 2020-02-20 14:39:26 +00:00
Will Hunt
fd379b0108
User types are part of the hmac
b98971e8a4/synapse/_scripts/register_new_matrix_user.py (L62-L71)
2020-02-20 14:36:29 +00:00
Tulir Asokan
342ab32f3a Add internal option for client-wide reply disabling 2020-01-23 18:43:33 +02:00
Tulir Asokan
3621ddc190 Update docker images to Alpine 3.11 2020-01-23 14:35:43 +02:00
Tulir Asokan
d874f43df9
Merge pull request #80 from karthanistyr/feature/ui_support_subpath
Make management UI aware of URL subpaths in config
2020-01-23 14:28:31 +02:00
Antoine Mazeas
f65f4c540b Review fixes based on comments
Signed-off-by: Antoine Mazeas <antoine@karthanis.net>
2020-01-20 11:19:41 +01:00
Tulir Asokan
7f64d21e1e Fix mistakes in standalone bot main file 2020-01-16 21:08:19 +02:00
Antoine Mazeas
3aadf0c2a9 Swap urllib for yarl; make use of process.env
Signed-off-by: Antoine Mazeas <antoine@karthanis.net>
2020-01-09 14:32:38 +01:00
Antoine Mazeas
3b603a2180 Revert obsolete change
Signed-off-by: Antoine Mazeas <antoine@karthanis.net>
2020-01-07 19:36:17 +01:00
Antoine Mazeas
9d587e32f2 Readd BASE_PATH export
Signed-off-by: Antoine Mazeas <antoine@karthanis.net>
2020-01-07 19:21:37 +01:00
Antoine Mazeas
3c7b4fc09c Make management UI aware of URL subpaths in config
Signed-off-by: Antoine Mazeas <antoine@karthanis.net>
2020-01-07 19:04:40 +01:00
Tulir Asokan
8a711e0c8e Update Ace 2020-01-02 01:05:26 +02:00
Tulir Asokan
9ee0e09a5e Turn login div into form to allow using enter 2020-01-02 00:46:38 +02:00
Tulir Asokan
6bc6a08c83 Quote table names in plugin database explorer 2020-01-02 00:45:45 +02:00
Tulir Asokan
69362de854 Fix eslint warnings 2020-01-02 00:44:46 +02:00
Tulir Asokan
39a11e18d9 Update frontend dependencies 2020-01-02 00:42:20 +02:00
Tulir Asokan
8687a3b591 Fix startup for plugins without webapp 2019-12-28 16:11:47 +02:00
Tulir Asokan
169aece027 Bump dev build number 2019-12-28 16:04:38 +02:00
Tulir Asokan
393ee354f6 Increase config wrapping width for plugin configs 2019-12-28 16:02:29 +02:00
Tulir Asokan
50addc2ceb Allow plugins to add more classes as handler sources 2019-12-26 17:47:30 +02:00
Tulir Asokan
7a06df51e1 Automatically join new room on upgrade 2019-11-21 23:08:12 +02:00
Tulir Asokan
b15e692cf9 Bump dev build number 2019-11-17 22:31:37 +02:00
Tulir Asokan
1d03fd83df Switch to commonmark 2019-11-17 22:31:16 +02:00
Tulir Asokan
bb45218639 Fix splitting arguments when command has newlines 2019-11-17 22:31:02 +02:00
Tulir Asokan
6f37f914e9
Merge pull request #72 from L0ric0/master
fix start and end positions of match in RegexArgument
2019-10-23 14:46:55 +03:00
Tulir Asokan
6082a47fdc Fix building standalone image 2019-10-23 01:53:47 +03:00
Tulir Asokan
fa77005121 Add standalone single-plugin executor 2019-10-23 01:14:54 +03:00
Tulir Asokan
0a7f80df21 Fix some things 2019-10-23 01:14:39 +03:00
Lorenz Steinert
2d1560e92a
fix start and end positions of match
the `match.pos` and `match.endpos` are not the start and end of the matched
group but the start and end arguments passed to the `re.match()` method.

use `match.start()` and `match.end()` to find the beginning and the end of
the matched group.

see https://docs.python.org/3/library/re.html#match-objects
2019-10-16 16:08:01 +02:00
Tulir Asokan
bf4c062d43 Include alembic.ini in pypi build 2019-09-29 16:59:28 +03:00
Tulir Asokan
0ef0acec6c Make new pypi build 2019-09-29 16:55:51 +03:00
Tulir Asokan
341fb85b54 Fix typo and add commitstrip and supportportal plugins to readme 2019-09-28 19:03:50 +03:00
Tulir Asokan
ccc94da432 Add edits parameter to client.send_markdown 2019-09-28 17:21:03 +03:00
Tulir Asokan
7fcb7cbf0a Update type hints and allow InternalEventTypes for @event.on 2019-09-28 17:21:03 +03:00
Tulir Asokan
ed6055744f Add Alembic setup 2019-09-28 17:21:03 +03:00
Tulir Asokan
a96367de3d Make new pypi dev build 2019-09-11 14:18:41 +03:00
Tulir Asokan
506ffdedf5 Import db base from util 2019-09-01 22:11:28 +03:00