discordIRCd icon indicating copy to clipboard operation
discordIRCd copied to clipboard

Handle code blocks better using github gist and possibly irccloud text snippets

Open creesch opened this issue 8 years ago • 1 comments

Currently they aren't handled at all resulting in each line being send to irc separately, making the code unreadable.

The best solution to me seems to look for code blocks and pass those to a pastebin like service.

However, since some channels likely are considered private I don't want to do this to a open service. So the only services I will build in are those that allow private/unlisted text snippets.

gist.github.com is the most obvious choice for this. Secondly I want to explore if the irccloud text snippet functionality has an api endpoint.

creesch avatar Mar 20 '17 08:03 creesch

As a reference point Gitter and Slack IRC gateways dumps code blocks as IRC lines

Scrxtchy avatar Mar 21 '17 13:03 Scrxtchy