29 Commits

Author SHA1 Message Date
Aine
ea1533acae add !pm relay - per-mailbox relay config 2024-05-02 11:28:37 +03:00
Aine
dd0ad4c245 refactor to mautrix 0.17.x; update deps 2024-02-11 20:47:04 +02:00
Aine
0bf8672a88 option set/get visual changes 2023-10-02 21:24:48 +03:00
Aine
bebfa6df92 provide proper reply-to fallback by default 2023-09-28 15:17:55 +03:00
Aine
da41bd31fb add !pm banlist:totals, fix notices on reactions 2023-09-28 08:30:37 +03:00
Aine
816db6f409 always reply to a specific message; moved matrix-related utils to the linkpearl; refactoring 2023-09-27 12:43:55 +03:00
Aine
b413e5871a partial complexity refactoring 2023-09-23 17:33:58 +03:00
Aine
8f3a74d46c add !pm autoreply 2023-09-23 17:09:18 +03:00
Aine
480c99cf79 add !pm signature option 2023-09-23 16:35:12 +03:00
Aine
3bb1f3ecba add missing go packages 2023-09-22 19:43:44 +03:00
Aine
e3557f5522 new commands: spam:list, spam:add, spam:remove, spam:reset; updated readme with the full list of commands; rearranged sections in help 2023-09-22 19:35:28 +03:00
Aine
8d6c4aeafe big refactoring 2022-11-25 23:33:38 +02:00
Aine
21772d7360 mailbox activation, closes #52 2022-11-21 15:37:44 +02:00
Aine
6ddb894577 allow reserved mailboxes, closes #43 2022-11-20 20:55:41 +02:00
Aine
ebe9606aa9 real multi-domain support 2022-11-16 09:00:19 +02:00
Aine
9cfe0a6d4f show multi-domain aliases everywhere 2022-11-08 21:21:06 +02:00
Aine
15d5afe90f initial, rought, not-user-friendly support for multi-domain setup 2022-11-08 18:16:38 +02:00
Aine
2c47bc7e14 fix lowercase 2022-10-28 08:44:09 +03:00
Aine
a1feaff350 fix mappings check on !pm mailbox 2022-10-24 08:34:24 +03:00
Aine
c56c740c1d add password option messages 2022-09-23 11:28:15 +03:00
Aine
4bf0f0dee3 switch to password hashes 2022-09-23 11:17:34 +03:00
Aine
5a19ffad08 securely compare passwords, add notice about message removal 2022-09-23 10:19:25 +03:00
Aine
a3c81ab232 Merge branch 'better-introduction' into 'main'
Improve introduction and getters usability

See merge request etke.cc/postmoogle!26
2022-08-31 07:40:25 +00:00
Aine
ab95fe5d2d refactor to fmt.Sprintf() 2022-08-31 10:39:30 +03:00
Slavi Pantaleev
4b1ce195b4 Do not append domain twice when updating mailbox (again)
Fixes:

> `mailbox` of this room set to `test@domain@domain`

Previously fixed in 97a4d6c7bc, but it seems like we unintentionally
reintroduced this bug again at some point after that.
2022-08-31 09:16:16 +03:00
Slavi Pantaleev
60d3fbbba5 Improve introduction and getters usability
When someone first joins a room, they see some commands (`mailbox`,
`owner`, ..) and they know they are getters and setters, but they have
no good example as to how to use them.

Is it `!pm mailbox SOMETHING` or `!pm mailbox=SOMETHING` or something
else?

It's better if the introduction text gives you the full command you need
to get started (e.g. `!pm mailbox SOME_MAILBOX`), instead of a partial
command that you don't know how to use (e.g. `!pm mailbox` - this is
merely a getter and will not set your mailbox to `SOME_MAILBOX`).

Starting from this, I thought it would be a good idea to make all
option getters tell you how the commands are to be used. If you send
`!pm mailbox` and it tells you "not yet set", it should also tell you
how to actually set it (e.g. `!pm mailbox VALUE`).
2022-08-31 09:08:49 +03:00
Aine
9f66d1fee6 rename options, rename settings types 2022-08-30 14:45:07 +03:00
Aine
5ed3a53223 diff bot and room settings 2022-08-30 14:37:19 +03:00
Aine
1a87929567 rename files; show commands by access level 2022-08-29 15:19:07 +03:00