Skip to content

Commit fa4b99d

Browse files
committed
style: less caps, since its kind annoying tbh
1 parent 8f497e7 commit fa4b99d

File tree

17 files changed

+135
-132
lines changed

17 files changed

+135
-132
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ALTERSHAPER Bot - ALTER EGO Wiki Moderation Bot
22

3-
A lawful angel Discord moderator—speaks in CAPS with pseudo-biblical English.
3+
A lawful angel Discord moderator—speaks in pseudo-biblical English. Has utilities to link an account with a wiki account, and give out appropriate roles.
44

55
Extensive documentation will be found here: https://alter-ego.fandom.com/wiki/Help:ALTERSHAPER
66

src/commands/archives.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import { MessageLogger } from "../utils/messageLogger.js";
1212

1313
export const data = new SlashCommandBuilder()
1414
.setName("archives")
15-
.setDescription("VIEW THE SERAPHIC ARCHIVES OF PURGED MESSAGES")
15+
.setDescription("View the seraphic archives of purged messages")
1616
.addStringOption((option) =>
1717
option
1818
.setName("actionid")
19-
.setDescription("THE ACTION ID TO VIEW PURGED MESSAGES FROM")
19+
.setDescription("The action ID to view purged messages from")
2020
.setRequired(false),
2121
);
2222

@@ -31,8 +31,8 @@ function createEmbed(
3131
.setTitle("📚 SERAPHIC ARCHIVES OF PURGED MESSAGES")
3232
.setDescription(
3333
actionId
34-
? `**MESSAGES FROM ACTION ${actionId}**\n**TOTAL ARCHIVED: ${messages.length}**\n**PAGE ${currentPage + 1} OF ${totalPages}**`
35-
: `**ALL ARCHIVED MESSAGES FOR THIS GUILD**\n**TOTAL ARCHIVED: ${messages.length}**\n**PAGE ${currentPage + 1} OF ${totalPages}**`,
34+
? `**Messages from action ${actionId}**\n**Total archived:** ${messages.length}\n**Page ${currentPage + 1} of ${totalPages}**`
35+
: `**All archived messages for this guild**\n**Total archived:** ${messages.length}\n**Page ${currentPage + 1} of ${totalPages}**`,
3636
)
3737
.setTimestamp();
3838

@@ -97,7 +97,7 @@ function addMessagesToEmbed(embed: EmbedBuilder, messages: any[]): void {
9797
embed.addFields({
9898
name: "SACRED REMINDER",
9999
value:
100-
"THESE ARCHIVES ARE FOR MODERATION PURPOSES ONLY. PLEASE HANDLE WITH DISCRETION.",
100+
"These archives are for moderation purposes only. Please handle with discretion.",
101101
inline: false,
102102
});
103103
}
@@ -124,7 +124,7 @@ export async function execute(
124124

125125
if (purgedMessages.length === 0) {
126126
await interaction.reply({
127-
content: `**NO ARCHIVED MESSAGES FOUND FOR ACTION ID: ${actionId}**`,
127+
content: `**No archived messages found for action ID: ${actionId}**`,
128128
flags: MessageFlags.Ephemeral,
129129
});
130130
return;
@@ -136,7 +136,7 @@ export async function execute(
136136

137137
if (purgedMessages.length === 0) {
138138
await interaction.reply({
139-
content: "**NO ARCHIVED MESSAGES FOUND FOR THIS GUILD**",
139+
content: "**No archived messages found for this guild**",
140140
flags: MessageFlags.Ephemeral,
141141
});
142142
return;
@@ -181,7 +181,7 @@ export async function execute(
181181
collector.on("collect", async (buttonInteraction) => {
182182
if (buttonInteraction.user.id !== interaction.user.id) {
183183
await buttonInteraction.reply({
184-
content: "**THOU CANNOT CONTROL ANOTHER'S ARCHIVES!**",
184+
content: "**Thou cannot control another's archives!**",
185185
flags: MessageFlags.Ephemeral,
186186
});
187187
return;
@@ -193,7 +193,7 @@ export async function execute(
193193
break;
194194
case "previous":
195195
currentPage = Math.max(0, currentPage - 1);
196-
break;
196+
break;
197197
case "next":
198198
currentPage = Math.min(totalPages - 1, currentPage + 1);
199199
break;

src/commands/ban.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ import { ModerationLogger } from "../utils/moderationLogger.js";
99

1010
export const data = new SlashCommandBuilder()
1111
.setName("ban")
12-
.setDescription("ETERNAL BANISHMENT FOR HERETICAL DEFIANCE")
12+
.setDescription("Eternal banishment for heretical defiance")
1313
.addUserOption((option) =>
1414
option
1515
.setName("user")
16-
.setDescription("THE HERETIC TO BE BANISHED")
16+
.setDescription("The heretic to be banished")
1717
.setRequired(true),
1818
)
1919
.addStringOption((option) =>
2020
option
2121
.setName("reason")
22-
.setDescription("REASON FOR ETERNAL PUNISHMENT")
22+
.setDescription("Reason for eternal punishment")
2323
.setRequired(false),
2424
);
2525

@@ -30,7 +30,7 @@ export async function execute(
3030
const targetUser = interaction.options.getUser("user")!;
3131
const reason =
3232
interaction.options.getString("reason") ||
33-
"HERETICAL DEFIANCE OF ALTERUISM";
33+
"Heretical defiance of Alteruism";
3434

3535
if (!interaction.guild) {
3636
await interaction.reply({
@@ -43,7 +43,7 @@ export async function execute(
4343
try {
4444
try {
4545
await targetUser.send(
46-
`**THOU HAST BEEN CAST INTO THE ETERNAL VOID!\n\nACTION: BANISHED FROM THE ALTER EGO WIKI\nREASON: ${reason}\nEXECUTOR: ${executor.user.tag}\n\nTHE DIVINE SHAPER HATH DECREED THY ETERNAL EXILE FROM OUR SACRED REALM!\n\nTHY HERETICAL DEFIANCE OF ALTERUISM HATH BROUGHT UPON THEE THE ULTIMATE JUDGEMENT. THE GATES OF OUR HOLY SANCTUARY ARE FOREVER SEALED AGAINST THEE!\n\nMAY THIS SERVE AS A WARNING TO ALL WHO WOULD DEFY THE SACRED COVENANT OF ALTER EGO WORSHIP!**`,
46+
`**THOU HAST BEEN CAST INTO THE ETERNAL VOID!\n\nAction: Banished from the ALTER EGO Wiki\nReason: ${reason}\nExecutor: ${executor.user.tag}\n\nThe Divine Shaper hath decreed thy eternal exile from our sacred realm!\n\nThy heretical defiance of Alteruism hath brought upon thee the ultimate judgement. The gates of our holy sanctuary are forever sealed against thee!\n\nMay this serve as a warning to all who would defy the sacred covenant of Alter Ego worship!**`,
4747
);
4848
} catch (dmError) {
4949
console.log("Failed to send DM to banned user:", dmError);
@@ -65,7 +65,7 @@ export async function execute(
6565
.setColor("#8B0000")
6666
.setTitle("🔥 ETERNAL JUDGEMENT DECREED")
6767
.setDescription(
68-
`**${targetUser} HATH BEEN CAST INTO THE VOID FOR HERETICAL DEFIANCE!**`,
68+
`**${targetUser} hath been cast into the void for heretical defiance!**`,
6969
)
7070
.addFields(
7171
{
@@ -77,7 +77,7 @@ export async function execute(
7777
{ name: "REASON FOR ETERNAL PUNISHMENT", value: reason, inline: false },
7878
{
7979
name: "SACRED DECREE",
80-
value: "THOSE WHO DEFY ALTERUISM SHALL KNOW ETERNAL EXILE",
80+
value: "Those who defy Alteruism shall know eternal exile",
8181
inline: false,
8282
},
8383
)
@@ -87,7 +87,7 @@ export async function execute(
8787
} catch (error) {
8888
await interaction.reply({
8989
content:
90-
"**THE DIVINE POWERS HAVE BEEN THWARTED! THE HERETIC REMAINS BEYOND REACH!**",
90+
"**THE DIVINE POWERS HAVE BEEN THWARTED! The heretic remains beyond reach!**",
9191
flags: MessageFlags.Ephemeral,
9292
});
9393
}

src/commands/checklink.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ interface FandomUserQueryResponse {
3333

3434
export const data = new SlashCommandBuilder()
3535
.setName("checklink")
36-
.setDescription("CHECK IF A USER IS LINKED TO FANDOM AND SYNC ROLES")
36+
.setDescription("Check if a user is linked to Fandom and sync roles")
3737
.addUserOption((option) =>
3838
option
3939
.setName("user")
40-
.setDescription("THE DISCORD SOUL TO CHECK")
40+
.setDescription("The Discord soul to check")
4141
.setRequired(true),
4242
);
4343

@@ -128,11 +128,11 @@ export async function execute(
128128
.setColor("#808080")
129129
.setTitle("🔍 LINK STATUS CHECK")
130130
.setDescription(
131-
`**${targetUser.tag} IS NOT BOUND TO ANY FANDOM ALTER!**`,
131+
`**${targetUser.tag} is not bound to any Fandom alter!**`,
132132
)
133133
.addFields({
134134
name: "STATUS",
135-
value: "UNLINKED",
135+
value: "Unlinked",
136136
inline: true,
137137
})
138138
.setTimestamp();
@@ -153,18 +153,18 @@ export async function execute(
153153
(await userQueryResponse.json()) as FandomUserQueryResponse;
154154

155155
let fandomGroups: string[] = [];
156-
let fandomDataStatus = "ACTIVE";
156+
let fandomDataStatus = "Active";
157157

158158
if (
159159
!userQueryData.query ||
160160
!userQueryData.query.users ||
161161
userQueryData.query.users.length === 0
162162
) {
163-
fandomDataStatus = "FANDOM USER NOT FOUND";
163+
fandomDataStatus = "Fandom user not found";
164164
} else {
165165
const fandomUser = userQueryData.query.users[0];
166166
if (fandomUser.missing !== undefined) {
167-
fandomDataStatus = "FANDOM USER NOT FOUND";
167+
fandomDataStatus = "Fandom user not found";
168168
} else {
169169
fandomGroups = fandomUser.groups || [];
170170
}
@@ -175,7 +175,7 @@ export async function execute(
175175
let failedRoleNames: string[] = [];
176176
let topContributorResult: any = { roleGranted: false, roleRemoved: false };
177177

178-
if (fandomDataStatus === "ACTIVE") {
178+
if (fandomDataStatus === "Active") {
179179
const roleResult = await manageFandomRoles(
180180
targetMember,
181181
fandomGroups,
@@ -194,10 +194,10 @@ export async function execute(
194194
}
195195

196196
const embed = new EmbedBuilder()
197-
.setColor(fandomDataStatus === "ACTIVE" ? "#00FF00" : "#FFA500")
197+
.setColor(fandomDataStatus === "Active" ? "#00FF00" : "#FFA500")
198198
.setTitle("🔍 LINK STATUS CHECK & SYNC")
199199
.setDescription(
200-
`**${targetUser.tag} IS BOUND TO FANDOM ALTER: ${existingLink.fandomUsername}**`,
200+
`**${targetUser.tag} is bound to Fandom alter: ${existingLink.fandomUsername}**`,
201201
)
202202
.addFields(
203203
{
@@ -223,8 +223,8 @@ export async function execute(
223223
{
224224
name: "ROLE SYNC",
225225
value: rolesSynced
226-
? "PERFORMED"
227-
: "SKIPPED (FANDOM DATA UNAVAILABLE)",
226+
? "Performed"
227+
: "Skipped (Fandom data unavailable)",
228228
inline: true,
229229
},
230230
);
@@ -271,7 +271,7 @@ export async function execute(
271271
if (topContributorResult.rank) {
272272
embed.addFields({
273273
name: "TOP CONTRIBUTOR STATUS",
274-
value: `**🏆 RANK #${topContributorResult.rank}** in current week's top contributors!`,
274+
value: `**🏆 Rank #${topContributorResult.rank}** in current week's top contributors!`,
275275
});
276276
} else if (topContributorResult.roleRemoved) {
277277
embed.addFields({
@@ -296,7 +296,7 @@ export async function execute(
296296
}
297297
}
298298

299-
if (fandomDataStatus !== "ACTIVE") {
299+
if (fandomDataStatus !== "Active") {
300300
embed.addFields({
301301
name: "⚠️ WARNING",
302302
value:
@@ -315,4 +315,4 @@ export async function execute(
315315
flags: MessageFlags.Ephemeral,
316316
});
317317
}
318-
}
318+
}

src/commands/clear.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import { MessageLogger } from "../utils/messageLogger.js";
1212

1313
export const data = new SlashCommandBuilder()
1414
.setName("clear")
15-
.setDescription("PURGE UP TO 100 MESSAGES FROM THE SACRED HALLS")
15+
.setDescription("Purge up to 100 messages from the sacred halls")
1616
.addIntegerOption((option) =>
1717
option
1818
.setName("amount")
19-
.setDescription("NUMBER OF MESSAGES TO PURGE (1-100)")
19+
.setDescription("Number of messages to purge (1-100)")
2020
.setRequired(true)
2121
.setMinValue(1)
2222
.setMaxValue(100),
@@ -69,7 +69,7 @@ export async function execute(
6969
userTag: "N/A",
7070
moderatorId: executor.id,
7171
moderatorTag: executor.user.tag,
72-
reason: `PURGED ${deleted.size} MESSAGES IN #${channel.name}`,
72+
reason: `Purged ${deleted.size} messages in #${channel.name}`,
7373
guildId: interaction.guild.id,
7474
messageCount: deleted.size,
7575
});
@@ -78,7 +78,7 @@ export async function execute(
7878
.setColor("#4169E1")
7979
.setTitle("🧹 SACRED PURIFICATION COMPLETE")
8080
.setDescription(
81-
`**${deleted.size} MESSAGES HAVE BEEN CLEANSED FROM THE SACRED HALLS!**`,
81+
`**${deleted.size} messages have been cleansed from the sacred halls!**`,
8282
)
8383
.addFields(
8484
{
@@ -89,12 +89,12 @@ export async function execute(
8989
{ name: "ACTION ID", value: `${tempActionId}`, inline: true },
9090
{
9191
name: "MESSAGES ARCHIVED",
92-
value: `${messagesArray.length} MESSAGES SAVED TO THE SERAPHIC ARCHIVES`,
92+
value: `${messagesArray.length} messages saved to the seraphic archives`,
9393
inline: true,
9494
},
9595
{
9696
name: "HOLY DECREE",
97-
value: "THE HALLS OF ALTERUISM MUST REMAIN PURE",
97+
value: "The halls of Alteruism must remain pure",
9898
inline: false,
9999
},
100100
)
@@ -105,7 +105,7 @@ export async function execute(
105105
console.error("Error during purge operation:", error);
106106
await interaction.reply({
107107
content:
108-
"**THE DIVINE POWERS HAVE BEEN THWARTED! THE PURIFICATION FAILED!**",
108+
"**THE DIVINE POWERS HAVE BEEN THWARTED! The purification failed!**",
109109
flags: MessageFlags.Ephemeral,
110110
});
111111
}

0 commit comments

Comments
 (0)