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
Tulir Asokan
0c8a79fab0
Minor style fix
2019-09-01 21:54:29 +03:00
Tulir Asokan
bb92a26aaf
Use remote_avatar/displayname in client selector too
2019-09-01 21:52:58 +03:00
Tulir Asokan
1abd0d4820
Fix device ID generation
2019-09-01 15:16:49 +03:00
Tulir Asokan
1cb2ec5a9b
Only show config editor if plugin type has config
2019-09-01 15:15:54 +03:00
Tulir Asokan
6e8bf60050
Merge remote-tracking branch 'Half-Shot/hs/bot-user-type'
2019-09-01 15:08:42 +03:00
Tulir Asokan
bbbb92782f
Fix updating instance with sqlalchemy core
2019-09-01 15:07:09 +03:00
Tulir Asokan
b59eab2953
Stop using SQLAlchemy ORM and add colorful logs
2019-09-01 14:46:08 +03:00
Tulir Asokan
33a83e0701
Fix starting syncing when there's no avatar set
2019-08-31 14:55:16 +03:00
Tulir Asokan
811b5877b0
Fix previous commit
2019-08-31 12:44:32 +03:00
Tulir Asokan
c9c8ac08a1
Show avatar and name from server if profile overwriting is disabled
2019-08-31 12:32:25 +03:00
Tulir Asokan
71d0bf0238
New pypi dev build
2019-08-31 12:00:32 +03:00
Tulir Asokan
d5541caf8d
Support disabling setting displayname/avatar url
2019-08-31 11:53:30 +03:00
Tulir Asokan
cbe312176d
Fix original plugin base config object being mutated when updating config
2019-08-30 01:27:58 +03:00
Tulir Asokan
eb353c4964
Add edit function to MaubotMessageEvent
2019-08-30 01:27:40 +03:00
Will Hunt
9fe7816b49
Ignore user_type for login
2019-08-28 10:03:28 +01:00
Will Hunt
d8c58504c5
Pull user_type from the request
2019-08-28 08:30:06 +01:00
Will Hunt
564cc0bf2c
Register clients with user_type "bot"
...
Depends on https://github.com/matrix-org/synapse/pull/5902
This means that synapse servers that require consent will not demand it from bot users.
2019-08-28 08:11:33 +01:00
Tulir Asokan
c442ca4d86
Don't show homeserver as selected when one isn't actually selected. Fixes #57
2019-08-11 15:36:24 +03:00
Tulir Asokan
d557a5b02a
Add sync state indicator and support for clearing cache
2019-07-21 20:37:32 +03:00
Tulir Asokan
13065451f5
Fix error in client create view
2019-07-21 18:56:05 +03:00
Tulir Asokan
bc700df938
Push recent changes to PyPI
2019-07-21 18:20:18 +03:00
Tulir Asokan
d451a8d669
Use more specific mautrix.client import path
2019-07-21 18:18:22 +03:00
Tulir Asokan
0488058a02
Fix defaultPut suffix parameter
2019-07-16 03:16:37 +03:00
Tulir Asokan
e5e614fc4b
Add fancier server selector
2019-07-16 03:12:13 +03:00
Tulir Asokan
924f627c58
Fix web app homepage
2019-07-16 03:11:53 +03:00
Tulir Asokan
8b0bd510f9
Stop requiring super call to activate event handlers in plugin start/stop methods
2019-07-13 15:48:13 +03:00
Tulir Asokan
7e6c51d18f
Update frontend dependencies
2019-07-11 01:00:11 +03:00
Tulir Asokan
cd43fcde4b
Fix error preventing any bot from syncing
2019-07-09 23:08:28 +03:00
Tulir Asokan
d32a88f3b4
Update mautrix-python version
2019-07-09 19:31:56 +03:00
Tulir Asokan
29631b370f
Update frontend packages
2019-06-21 14:47:04 +03:00
Tulir Asokan
12cc0c6672
Update dev version number
2019-06-21 14:45:54 +03:00
Tulir Asokan
72b7e81f97
Change event.react() to use client.react()
2019-06-21 14:40:12 +03:00
Tulir Asokan
d56ec94d34
Add react method to MaubotMessageEvent
2019-06-21 14:19:24 +03:00
Tulir Asokan
7b4d3e8313
Fix bug with default __mb_is_command_match__ impl when using lambda command names
2019-06-20 16:55:55 +03:00
Tulir Asokan
ac3b862f23
Trim reply fallback when fetching single events
2019-06-16 01:33:51 +03:00
Tulir Asokan
8b5eb1849b
Pass correct self to command aliases func
2019-06-12 20:58:22 +03:00
Tulir Asokan
c5337f96a3
Add an option in events to make reply() act as respond()
...
Should be a command handler argument or have some other way of making
it configurable in the future.
2019-06-09 18:22:30 +03:00
Tulir Asokan
4210f3195f
Update copyright year
2019-06-08 17:42:07 +03:00
Tulir Asokan
86adf093f1
Use random device IDs when logging in
2019-06-08 17:02:52 +03:00
Tulir Asokan
d5e78db5cf
Add Matrix client login/register commands
2019-06-08 17:02:44 +03:00
Tulir Asokan
e565b99826
Pass extra info to argument parsers and add dateparser to temporary dockerfile dependencies
2019-06-08 12:31:38 +03:00
Tulir Asokan
b137d0686f
Update version to 0.1.0.dev18
2019-06-01 23:40:46 +03:00
Tulir Asokan
9bd06a3d64
Add web handler decorators
2019-05-14 18:32:48 +03:00
Tulir Asokan
304c1b5536
Make maubot.cli an executable module
2019-05-05 11:14:41 +03:00
Tulir Asokan
a234af1f41
Update dev version
2019-04-20 19:13:41 +03:00
Tulir Asokan
ec6578294f
Clear plugin webapp routes in default stop()
2019-04-16 16:33:19 +03:00
Tulir Asokan
05acf08e5b
Fix fonts
2019-04-16 16:32:41 +03:00
Perflyst
e28c3a6018
Remove third party CDN's ( #50 )
...
* Use local files instead cdn
* Drop legacy fonts
* Drop legacy FiraCode fonts
2019-04-16 00:53:55 +03:00
Tulir Asokan
a0ebb2d215
Change access_token field to text. Fixes #44
2019-04-14 02:14:28 +03:00
Tulir Asokan
8b04231038
Update version
2019-03-27 21:00:00 +02:00
Tulir Asokan
74979aee1a
Fix plugin webapp URL cloning
2019-03-08 01:54:28 +02:00
Tulir Asokan
d2b145d0bc
Change things
2019-03-07 21:35:35 +02:00
Tulir Asokan
b3e1f1d4bc
Try another approach for plugin web apps
2019-03-07 19:57:10 +02:00
Tulir Asokan
3c2d0a9fde
Switch to a hacky custom router for plugin web apps
2019-03-06 23:16:22 +02:00
Tulir Asokan
a4cfb97b67
Use less freezing way of adding plugin subapps
2019-03-06 22:57:16 +02:00
Tulir Asokan
19a20721e8
Pass public URL of webapp to plugins
2019-03-06 22:35:51 +02:00
Tulir Asokan
c6287e6626
Fix typo
2019-03-06 22:27:23 +02:00
Tulir Asokan
f303bd66ab
Let plugins add their endpoints to the main webserver
2019-03-06 22:22:34 +02:00
Tulir Asokan
79c61d6889
Fix uploading plugins with different versions
2019-03-06 15:35:03 +02:00
Tulir Asokan
2bf1c41b53
Fix __mb_is_command_match__
2019-02-17 15:57:55 +02:00
Tulir Asokan
c01cf127be
Fix blank module handling in mbc build and bump alpine base in dockerfile
2019-02-13 19:40:21 +02:00
Tulir Asokan
56a11fdceb
Fix mbc init python template
2019-02-13 18:55:34 +02:00
Tulir Asokan
3068245b1f
Fix license in mbc iit
2019-02-13 18:27:46 +02:00
Tulir Asokan
f548e17c80
Fix regex flag args
2019-02-05 12:27:19 +02:00
Tulir Asokan
a57df919f5
Fix passive command matching and add regex flag args
2019-02-05 12:08:21 +02:00
Tulir Asokan
360743f1c9
Add spec for Matrix auth endpoints
2019-02-04 11:38:23 +02:00
Tulir Asokan
8b5c637f76
Fix CommandHandler descriptor
2019-01-18 22:58:43 +02:00
Tulir Asokan
4ea980cb93
Fix typo
2019-01-18 21:31:39 +02:00
Tulir Asokan
b926f1e59d
Fix active command handlers for multi-instance plugins
2019-01-18 21:26:04 +02:00
Tulir Asokan
9d38c43576
Fix mistake in __mb_subcommands_list__
2019-01-15 15:47:30 +02:00
Tulir Asokan
80a35f3081
Update version
2019-01-10 12:14:27 +02:00
Tulir Asokan
c4c7bdc76b
Add event type filter to command handling system
2019-01-08 21:17:41 +02:00
Tulir Asokan
1965489f51
Fix message when building plugin
2019-01-07 09:50:59 +02:00
Tulir Asokan
16045d9c63
Fix handling of auth token errors at page load
2019-01-07 09:26:43 +02:00
Tulir Asokan
448cbfc92d
Fix frontend log viewer not being enabled correctly
2019-01-07 09:06:46 +02:00
Tulir Asokan
401643afba
Add html_in_markdown option to reply() and respond()
2019-01-07 09:06:11 +02:00
Tulir Asokan
400c9aaebc
Allow access to /features endpoint without login
2019-01-07 08:13:27 +02:00
Tulir Asokan
a46f756be7
Fix preference table input field shifting when focusing
2018-12-31 22:52:43 +02:00
Tulir Asokan
75b5ac8ebd
Add config option to disable parts of management API
2018-12-30 19:50:50 +02:00
Tulir Asokan
147081c0db
Add contextmenu in database explorer and implement deleting rows
2018-12-29 15:22:12 +02:00
Tulir Asokan
46186452dc
Add option to write SQL queries in database explorer
2018-12-28 22:33:27 +02:00
Tulir Asokan
88107daa6f
Fix exploring datetime columns
2018-12-28 19:31:43 +02:00
Tulir Asokan
4cc605df76
Finish basic database viewing
2018-12-28 19:19:58 +02:00
Tulir Asokan
dc22f35d08
Add beginning of database explorer
2018-12-27 21:31:32 +02:00
Tulir Asokan
88c2f9d463
Add support for command aliases and dynamic command names
2018-12-26 18:38:56 +02:00
Tulir Asokan
2b54aee413
Merge branch 'master' into rewrite-command-handling
2018-12-25 00:47:49 +02:00
Tulir Asokan
0cf06f9f6b
Make new command handling system fully work
2018-12-25 00:37:02 +02:00
Tulir Asokan
5ff5eae3c6
Make new command handling actually somewhat work
2018-12-24 00:31:01 +02:00
Tulir Asokan
682eab348d
Some sort of command handling system
2018-12-18 00:53:39 +02:00
Tulir Asokan
bddb881945
Allow choosing server to upload built plugin to
2018-12-17 21:09:08 +02:00
Tulir Asokan
7cd5b04dbc
Fix building plugins to file
2018-12-17 20:55:29 +02:00
Tulir Asokan
f104595217
Changes related to rewriting the command handling system
2018-12-16 00:52:54 +02:00
Tulir Asokan
69de2c9d85
Bump dev version number
2018-12-14 00:50:05 +02:00
Tulir Asokan
160dd6c534
Print exception stack traces in cli log viewer
2018-12-14 00:40:35 +02:00
Tulir Asokan
6f06eec3cc
Add log viewer to mbc
2018-12-14 00:33:33 +02:00
Tulir Asokan
ecc1843119
Remove unused imports
2018-12-13 23:36:04 +02:00
Tulir Asokan
ee04cc59a2
Create license file when initializing project
2018-12-13 23:21:56 +02:00
Tulir Asokan
adc762b9dd
Show any errors when logging in
2018-12-13 22:36:47 +02:00
Tulir Asokan
66aef1978c
Fix accidentally changed variable name
2018-12-13 22:14:06 +02:00
Tulir Asokan
cb3993d79f
Implement uploading plugins
2018-12-13 20:48:52 +02:00