Commit Graph

708 Commits

Author SHA1 Message Date
gnuxie
2fd2745dc3 Update ManagementRoomOutput for MPS. 2024-04-06 20:03:33 +01:00
gnuxie
87c09d8719 Correctly configure package.json for MPS.
This has taken forever to get working, but now it is.
index.ts is changed because that's how we know
we've overriden the bot-sdk dep correctly.
2024-04-06 20:03:33 +01:00
gnuxie
f1d98b579a Port joinOnInvite listener from Mjolnir to Draupnir. 2024-04-06 20:03:33 +01:00
gnuxie
fc163edb3e Remove status command from protections for now.
We will replace them with protection specific command tables later.
2024-04-06 20:03:33 +01:00
gnuxie
e710f99286 Update BasicFlooding protection for protection settings changes. 2024-04-06 20:03:33 +01:00
gnuxie
03ed39dd69 Refactor TrustedReporters for MPS. 2024-04-06 20:03:33 +01:00
gnuxie
342ef16be6 Consequences are now replaced by MPS consequence providers. 2024-04-06 20:03:33 +01:00
gnuxie
4b415410a9 Remove detect federation lag command.
This is a pretty bold piece of work and it's a shame to remove it for
now.
We would like to bring it back, possibly as a protection.
However, there isn't the time while we move over to the new MPS backend.
2024-04-06 20:03:33 +01:00
gnuxie
11dc0506f2 Remove sync command.
It no longer makes sense to have a sync command since
all synchornisation is done by protections.
So it might come back just not in its current form.
2024-04-06 20:03:33 +01:00
gnuxie
34133f6e8c Remove since command
Much like the joins command, this needs rewriting to use
`SetMembership` from MPS and there isn't the time to do that
right now.
These commands didn't seem to work as intended anyway.
2024-04-06 20:03:33 +01:00
gnuxie
a9bde39a0a Remove default banlist command.
In reality this sets a default shortcode,
and for the moment we aren't able to work with shortcodes.

I don't know if it makes sense to bring this command back
in future because we would like to instead have
the ban propagation protection have a setting
for a list to fill client bans directly into.
2024-04-06 20:03:33 +01:00
gnuxie
cb942365b3 Remove JoinsCommand.
There isn't the time to make this work at the moment.
It should be brought back later and made to use the `SetMembership`
component from MPS.
2024-04-06 20:03:33 +01:00
gnuxie
a370f0f4b4 Begin moving protections over to MPS protections. 2024-04-06 20:03:33 +01:00
gnuxie
89bede86c3 Begin moving most commands to interface-manager and MPS. 2024-04-06 20:03:33 +01:00
gnuxie
67b4c31cce Move resolve command other to interface-manager and MPS. 2024-04-06 20:03:33 +01:00
gnuxie
6fb0584260 Move kick command over to interface-manager and MPS. 2024-04-06 20:03:33 +01:00
gnuxie
4d054f4345 Begin moving all commands over to interface-manager and MPS. 2024-04-06 20:03:33 +01:00
gnuxie
8fbec62df7 Command Context should have MatrixSendClient. 2024-04-06 20:03:33 +01:00
gnuxie
f6771b06cf Add MatrixEventReference to presentation types. 2024-04-06 20:03:33 +01:00
gnuxie
76a58b6f00 Delete directory management commands.
This should be managed from the client, and the idea
that being a Synapse admin makes a difference is unfounded.
It wasn't even connected to the command handler anyway.
2024-04-06 20:03:33 +01:00
gnuxie
844751a5b3 Add SynapseAdminClient from MPS4BotSDK to Draupnir. 2024-04-06 20:03:33 +01:00
gnuxie
68bfd61ccf Update all of InterfaceManager to use MPS. 2024-04-06 20:03:33 +01:00
gnuxie
98f3471ea0 Update CommandReader to use MPS. 2024-04-06 20:03:33 +01:00
gnuxie
928d9e3fc5 Delete InterfaceManager components that can be sourced from MPS. 2024-04-06 20:03:33 +01:00
gnuxie
388eaf6bb1 Update BanPropagationProtection to be an MPS protection. 2024-04-06 20:03:33 +01:00
gnuxie
e1d009bd69 Update RoomUpdateError to refer to MPS. 2024-04-06 20:03:33 +01:00
gnuxie
89f2b52580 Add consequence for unbanning user (MPS). 2024-04-06 20:03:33 +01:00
gnuxie
ecd6dbef71 Update Draupnir for new protection context in mps. 2024-04-06 20:03:33 +01:00
gnuxie
7a5aafde7d Update ReportPoller to use Draupnir (mps). 2024-04-06 20:03:32 +01:00
gnuxie
e5e771aaea Update ReportPoller to use Draupnir (mps). 2024-04-06 20:03:32 +01:00
gnuxie
977c4a39de Update ReportManager to use Draupnir (mps). 2024-04-06 20:03:32 +01:00
gnuxie
b51566000a Integrate report poller into new Draupnir class. 2024-04-06 20:03:32 +01:00
gnuxie
6d28ac81b0 Remove the RuleServer.
It was never used and we don't test it.
We can't really support it.
2024-04-06 20:03:32 +01:00
gnuxie
2d3b4d1e09 Begin implementing matrix-protection-suite support.
We could really do with some prettier for these newfiles.
2024-04-06 20:03:32 +01:00
gnuxie
c3bdf2c74a Unfinished listeners from Mjolnir 2024-04-06 20:03:32 +01:00
gnuxie
67adb530bc Start cleaning up Mjolnir into Draupnir, starting with listeners. 2024-04-06 20:03:32 +01:00
gnuxie
2929266c37 bs 2024-04-06 20:03:32 +01:00
gnuxie
edb10cd7c3 install matrix-protection-suite 2024-04-06 20:03:32 +01:00
gnuxie
f5c2ba2ccb v1.87.0 v1.87.0 2024-03-24 18:48:44 +00:00
Catalan Lover
e583f62aa2 Update AS Docs to mention your AS has to be able to write policies. (#299)
Cat discovered this flaw in the docs when Cat managed to run into #297.
2024-03-20 23:04:04 +00:00
Catalan Lover
5474f75c57 Update D4A Documentation to be A LOT better. (#272)
* Update D4A Documentation and add Config Example For Child Bots

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Move AS Inherited config into Docs instead of having example file.

* Integrate Review Feedback.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fix spelling mistake and a few its vs it´s style cases.

* Integrate Second Round of Review Feedback

* Update docs/appservice.md

yeah just wack it in Cat

Co-authored-by: Catalan Lover <48515417+FSG-Cat@users.noreply.github.com>

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Gnuxie <50846879+Gnuxie@users.noreply.github.com>
2024-03-18 12:03:31 +00:00
dependabot[bot]
788e89a079 Bump follow-redirects from 1.15.4 to 1.15.6 (#292)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.4 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.4...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-17 11:33:23 +00:00
dependabot[bot]
38a6cac329 Bump sanitize-html from 2.11.0 to 2.12.1 (#278)
Bumps [sanitize-html](https://github.com/apostrophecms/sanitize-html) from 2.11.0 to 2.12.1.
- [Changelog](https://github.com/apostrophecms/sanitize-html/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apostrophecms/sanitize-html/compare/2.11.0...2.12.1)

---
updated-dependencies:
- dependency-name: sanitize-html
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-01 17:43:03 +00:00
MTRNord
76de8b770b Provision with Draupnir in mxid instead of mjolnir. 2024-02-28 22:12:54 +00:00
gnuxie
d36ffff109 Fix d4all restart command. 2024-02-28 22:12:54 +00:00
gnuxie
84f45952ec Rename moderation bot to draupnir-moderation.
Figure this would be a thing that makes more sense to invite.
2024-02-28 22:12:54 +00:00
Gnuxie
8d0d3213be Set disableStores: true in matrix-appservice-bridge BridgeOpts. (#270)
This stores create database files all over the cwd that use nedb
which shouldn't really be used by the appservice library at this
point.

These files are problematic because they are undocumented to
server admins trying to setup the appservice, and need to be
explicitly accounted for to make permissions work.

The stores enable something called the `BridgeContext` to be
given alongside the event within the `onEvent` handler.
Which we don't use, and it's unclear how it should be used.

The primary motivation for removing the stores is to simplify
work making the appservice available to matrix-docker-ansible-deploy.

We expect to have follow up prs to improve documentation.
2024-02-28 19:14:51 +00:00
Catalan Lover
099bcbaf64 Update Docs to mention mdad as a installation method. (#248) 2024-02-10 00:20:25 +00:00
gnuxie
71cb738610 v1.86.2 v1.86.2 2024-02-09 18:50:27 +00:00
Gnuxie
945c737df6 Add secret management command line options to documentation. (#247) 2024-02-09 18:39:24 +00:00