Feature request: codeblocks and whitespace handling #15

Closed
opened 2022-01-17 05:48:50 -06:00 by lemonsh · 1 comment

Motivation

Relaying code between IRC and Discord has always been a pain with the JS bridge, so I'd like to propose another way of handling this.

Discord -> IRC

When a codeblocked message is sent in a Discord channel, the bridge removes the leading and trailing backticks (`) and sends the message, line by line, to IRC. This should be optional in the config, because the members have to be trusted not to spam the IRC channel.

IRC -> Discord

When a message in IRC starts with whitespace, the bridge wraps the message in single backticks (`) to prevent Discord from doing the usual whitespace trim. It also compresses text visually, making it easier to see.

## Motivation Relaying code between IRC and Discord has always been a pain with the JS bridge, so I'd like to propose another way of handling this. ## Discord -> IRC When a codeblocked message is sent in a Discord channel, the bridge removes the leading and trailing backticks (`) and sends the message, line by line, to IRC. This should be optional in the config, because the members have to be trusted not to spam the IRC channel. ## IRC -> Discord When a message in IRC starts with whitespace, the bridge wraps the message in single backticks (`) to prevent Discord from doing the usual whitespace trim. It also compresses text visually, making it easier to see.
Owner

Fixed by three most recent commits

Fixed by three most recent commits
karx closed this issue 2022-01-18 10:00:28 -06:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: karx/dircord#15
No description provided.