Skip to content

Commit 8620b21

Browse files
Techbot121Meta Construct
authored andcommitted
fix using wrong bridge and sound formatting changes
1 parent df685d5 commit 8620b21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/services/discord/modules/webhook-handler.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export default async (bot: DiscordBot): Promise<void> => {
113113

114114
let webhook: Discord.Webhook;
115115
const bridge = await bot.container.getService("GameBridge");
116-
const chatWebhook = bot.bridge.discordChatWH;
116+
const chatWebhook = bridge.discordChatWH;
117117

118118
bot.discord.on("ready", async () => {
119119
const channel = bot.getTextChannel(bot.config.channels.publicCommits);
@@ -515,8 +515,8 @@ export default async (bot: DiscordBot): Promise<void> => {
515515
const removedSounds = GroupSoundFilesByFolder(commit.removed ?? []);
516516
const modifiedSounds = GroupSoundFilesByFolder(commit.modified ?? []);
517517

518-
const formatSounds = ([folderName, sounds]: [string, string[]]) =>
519-
`[${folderName}](${payload.repository.html_url}/tree/master/sound/chatsounds/autoadd/${folderName}) -> ${[...new Set(sounds)].map(s => `\`${s}\``).join(", ")}`;
518+
const formatSounds = ([folderName, sounds]) =>
519+
`[**${folderName}**](${payload.repository.html_url}/tree/master/sound/chatsounds/autoadd/${folderName})\n${[...new Set(sounds)].map(s => `- \`${s}\``).join("\n")}`;
520520

521521
// maybe there is a better way instead of if-chaining this but whatever
522522
if (commit.added && addedSounds.size > 0) {

0 commit comments

Comments
 (0)