Skip to content

Commit 2d13a4c

Browse files
Merge pull request #162 from Pdzly/feature/143-modmail
2 parents 88b87ba + f6bdb48 commit 2d13a4c

24 files changed

Lines changed: 2319 additions & 22 deletions

bun.lock

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"djs-slash-helper": "git+https://github.com/bristermitten/djs-slash-helper.git#97726a356be094f4d187637734b116e4e1c89be5",
4242
"expiry-map": "^2.0.0",
4343
"fluent-ffmpeg": "^2.1.3",
44+
"handlebars": "^4.7.8",
4445
"lru-cache": "^11.1.0",
4546
"mariadb": "^3.4.5",
4647
"node-fetch": "^3.3.2",
@@ -69,6 +70,7 @@
6970
"@sentry/types": "^10.5.0",
7071
"@sinonjs/fake-timers": "^14.0.0",
7172
"@types/bun": "^1.2.19",
73+
"@types/handlebars": "^4.1.0",
7274
"@types/node": "^24.3.0",
7375
"@types/node-schedule": "^2.1.8",
7476
"@types/opentype.js": "^1.3.8",

src/Config.prod.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ export const config: Config = {
6161
yesEmojiId: "thumbsup",
6262
noEmojiId: "thumbsdown",
6363
},
64+
modmail: {
65+
pingRole: "",
66+
archiveChannel: "",
67+
channel: "",
68+
},
6469
pastebin: {
6570
url: "https://paste.developerden.org",
6671
threshold: 20,

src/Config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ export const config: Config = {
4949
yesEmojiId: "👍",
5050
noEmojiId: "👎",
5151
},
52+
modmail: {
53+
pingRole: "1412470653050818724",
54+
archiveChannel: "1412470199495561338",
55+
channel: "1412470223004766268",
56+
},
5257
pastebin: prodConfig.pastebin,
5358
branding: {
5459
color: "#ffffff",

src/config.type.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ export interface Config {
4444
noPing: Snowflake;
4545
bumpNotifications?: Snowflake;
4646
};
47+
modmail: {
48+
channel: string;
49+
archiveChannel: string;
50+
pingRole?: Snowflake;
51+
};
4752
branding: BrandingConfig;
4853
informationMessage?: InformationMessage;
4954
}

src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import JoinLeaveMessageModule from "./modules/joinLeaveMessage.module.js";
1717
import { LanguageStatusModule } from "./modules/languageStatus.module.js";
1818
import { LearningModule } from "./modules/learning/learning.module.js";
1919
import { ModerationModule } from "./modules/moderation/moderation.module.js";
20+
import { ModmailModule } from "./modules/modmail/modmail.module.js";
2021
import ModuleManager from "./modules/moduleManager.js";
2122
import PastifyModule from "./modules/pastify/pastify.module.js";
2223
import { RolesModule } from "./modules/roles/roles.module.js";
@@ -36,6 +37,7 @@ const client = new Client({
3637
GatewayIntentBits.GuildMessageReactions,
3738
GatewayIntentBits.MessageContent,
3839
GatewayIntentBits.GuildMembers,
40+
GatewayIntentBits.DirectMessages,
3941
],
4042
partials: [Partials.Message, Partials.Channel, Partials.Reaction],
4143
});
@@ -62,6 +64,7 @@ export const moduleManager = new ModuleManager(
6264
SuggestModule,
6365
ModerationModule,
6466
StarboardModule,
67+
ModmailModule,
6568
],
6669
);
6770

0 commit comments

Comments
 (0)