tangled
alpha
login
or
join now
dunkirk.sh
/
irc-slack-bridge
1
fork
atom
this repo has no description
1
fork
atom
overview
issues
pulls
pipelines
feat: just send image if no message
dunkirk.sh
3 months ago
f637e2af
869ae2fa
verified
This commit was signed with the committer's
known signature
.
dunkirk.sh
SSH Key Fingerprint:
SHA256:DqcG0RXYExE26KiWo3VxJnsxswN1QNfTBvB+bdSpk80=
+6
-4
1 changed file
expand all
collapse all
unified
split
src
index.ts
+6
-4
src/index.ts
···
320
320
// Parse Slack markdown formatting
321
321
messageText = parseSlackMarkdown(messageText);
322
322
323
323
-
const message = `<${username}> ${messageText}`;
324
324
-
325
325
-
ircClient.say(mapping.irc_channel, message);
326
326
-
console.log(`Slack → IRC: ${message}`);
323
323
+
// Send message only if there's text content
324
324
+
if (messageText.trim()) {
325
325
+
const message = `<${username}> ${messageText}`;
326
326
+
ircClient.say(mapping.irc_channel, message);
327
327
+
console.log(`Slack → IRC: ${message}`);
328
328
+
}
327
329
328
330
// Handle file uploads
329
331
if (payload.files && payload.files.length > 0) {