News for hackers. Stuff that matters.
Re:Simplicity of IRC by lambdaba on Sunday January 09, 2022 @08:59AM (#29863260)
100%, the fact that you can literally pipe some data in a command-line IRC client is 1000x more conducive to such tweaking than using custom APIs/SDKs

long live the Unix model!

Re:Simplicity of IRC by ferdowsi on Sunday January 09, 2022 @10:46AM (#29864225)
I don't see why you couldn't do the same in a Slack command-line program as well? Not hard to find simple examples of that.

https://github.com/csabapalfi/slackcat

Re:Simplicity of IRC by codys on Sunday January 09, 2022 @12:08PM (#29865157)
Slack has made using their API much trickier over time: getting a token to post these days (officially) is under the control of the server admin (as one needs to add a "slack app" to get one). One can extract a token and some cookies from a web browser slack session still, but it's not as clean as it used to be (where one could just generate account associated tokens that didn't randomly expire).

In other words:

- to use the slack APIs, you probably need company level buy in _before_ any code is written against the API from IT folks

- in contrast, with IRC one could just try something out and at some point in the future _maybe_ create a seperate IRC account for it, if your IRC server even has logins enabled. If it doesn't, which when I worked for IBM was the case, one can just pick a new username for the IRC bot.

Re:Simplicity of IRC by littlecranky67 on Sunday January 09, 2022 @11:33AM (#29864764)
I think the op meant on the protocol level, not client. You can literally do `cat mycommands.txt > /dev/tcp/...`. IRC is pretty simple, I remember using telnet just for fun to connect (also the PING message replies are annoying to type yourself) and at one time, (ab)used an FXPable FTP server data port trickery in ASCII mode to send a message to a channel.

Due to its simplicity I could see its application as a falback for global communication downtime/outages (as we had with FB/Insta recently).

Re:Simplicity of IRC by userbinator on Sunday January 09, 2022 @05:13PM (#29867853)
Due to its simplicity I could see its application as a falback for global communication downtime/outages

I remember when the solution to this, when everyone was still working in an office, was "pair of netcats".

Re:Simplicity of IRC by jacobolus on Sunday January 09, 2022 @11:39AM (#29864824)
Beyond that, (a) implementing enough of the IRC protocol to support simple bots isn’t that hard, and (b) there are already IRC protocol implementations everywhere.
Re:Simplicity of IRC by michaelt on Sunday January 09, 2022 @09:53AM (#29863699)
Doesn't that mean you get a channel join/leave for almost every message?
Re:Simplicity of IRC by lifthrasiir on Sunday January 09, 2022 @09:56AM (#29863729)
It is possible to post a message without joining if the channel has -n set (not the default for the obvious reason).
Re:Simplicity of IRC by crest on Sunday January 09, 2022 @10:10AM (#29863860)
So clients can read lines from a pipe as stdin.