blob: abc4652d0545c9707fdcef43276f8199a299a979 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
From 4ef64295d3db3e4390a09ad25b2d3fba2372e570 Mon Sep 17 00:00:00 2001
From: sefidel <contact@sefidel.net>
Date: Sat, 17 Feb 2024 14:39:42 +0900
Subject: [PATCH] use exotic.sh assets
Signed-off-by: sefidel <contact@sefidel.net>
---
src/bot.ts | 2 +-
src/discordas.ts | 2 ++
src/matrixroomhandler.ts | 2 +-
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/bot.ts b/src/bot.ts
index fc575cd..04b2a53 100644
--- a/src/bot.ts
+++ b/src/bot.ts
@@ -49,7 +49,7 @@ const INITIAL_FALLOFF_SECONDS = 5;
const MAX_FALLOFF_SECONDS = 5 * 60; // 5 minutes
// TODO: This is bad. We should be serving the icon from the own homeserver.
-const MATRIX_ICON_URL = "https://matrix.org/_matrix/media/r0/download/matrix.org/mlxoESwIsTbJrfXyAAogrNxA";
+const MATRIX_ICON_URL = "https://matrix.exotic.sh/_matrix/media/r0/download/matrix.org/mlxoESwIsTbJrfXyAAogrNxA";
class ChannelLookupResult {
public channel: Discord.TextChannel;
public botUser: boolean;
diff --git a/src/discordas.ts b/src/discordas.ts
index baebd98..fc9bcce 100644
--- a/src/discordas.ts
+++ b/src/discordas.ts
@@ -226,6 +226,8 @@ async function run(): Promise<void> {
}
await appservice.begin();
+ await appservice.botClient.setDisplayName("Discord Bridge");
+ await appservice.botClient.setAvatarUrl("mxc://exotic.sh/ludtHHPdrAzjckEyUNCWSdHC");
log.info(`Started listening on port ${port}`);
}
diff --git a/src/matrixroomhandler.ts b/src/matrixroomhandler.ts
index 1febaba..e20bfa6 100644
--- a/src/matrixroomhandler.ts
+++ b/src/matrixroomhandler.ts
@@ -24,7 +24,7 @@ const log = new Log("MatrixRoomHandler");
import { DbRoomStore, MatrixStoreRoom, RemoteStoreRoom } from "./db/roomstore";
import { Appservice, Intent, IApplicationServiceProtocol } from "matrix-bot-sdk";
-const ICON_URL = "https://matrix.org/_matrix/media/r0/download/matrix.org/mlxoESwIsTbJrfXyAAogrNxA";
+const ICON_URL = "https://matrix.exotic.sh/_matrix/media/r0/download/matrix.org/mlxoESwIsTbJrfXyAAogrNxA";
const ROOM_NAME_PARTS = 2;
// Note: The schedule must not have duplicate values to avoid problems in positioning.
--
2.43.0
|