msgconv: initial impl of ToMatrix, porting convertDiscordTextMessage

This commit is contained in:
Skip R
2025-11-25 17:40:48 -08:00
parent 66d9ca6394
commit 17fed9aca5
5 changed files with 393 additions and 2 deletions

23
pkg/msgconv/msgconv.go Normal file
View File

@@ -0,0 +1,23 @@
// mautrix-discord - A Matrix-Discord puppeting bridge.
// Copyright (C) 2024 Tulir Asokan
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
package msgconv
import "maunium.net/go/mautrix/bridgev2"
type MessageConverter struct {
bridge *bridgev2.Bridge
}