News for hackers. Stuff that matters.
Re:How to write an IRC bot by grokkingStuff on Monday March 12, 2018 @07:11AM (#16567344)
As much as I like IRC, I don't get why the author hates slack so much. I dislike slack (probably because of the culture in Slack groups) but I do think that having a mobile app & ease of use is why Slack is okay. Not having to deal with different servers & terminology that look scary also helps (a lot) for most people using Slack.

Most people who use Slack haven't ever used IRC professionally (or at all) - I've shown IRC to people who love Slack and I usually get "Ugh, it looks so old fashioned and difficult to use" as a reaction. Looks matters a lot if you want people to use it - most IRC clients are old or have designs based on old clients.

Plenty of Slack clones out there that look decent that have similar business models. What would be awesome if there's an IRC server that looked and acted like Slack; nice features like:

- a website to log into like Slack (with benefits like modern web design and Github, Twitter, Facebook login). - an irc client that looks decent on website, desktop and phone clients (and doesn't run on electron). - having multiple channels for one company like Slack channels in a group. IRC currently requires you to register several channels (which is annoying).

------------

As for the difficulty in writing bots for Slack vs IRC, sure it's easier to write stuff for Slack because:

- most Slack bots/services are written by companies who want their third party services to be easily integrated into whatever team communication their client use.

- most custom bots are variation of some bots that someone else has written (anecdotal evidence but pretty sure it's true). I'm pretty sure it's not that different for irc.

- most people don't bother writing bots unless they're willing to play around with bots; difficulty isn't an issue when it comes to writing one and I haven't seen bot development treated as an actual task (it's more of a hack that works and isn't really touched again.)

------------

Honestly, this seems to be a case where the author neglects how real-life people work in favor of code "niceness" (for lack of a better term). There's a reason why most people use Microsoft products (and it isn't because they make great software.)

Re:How to write an IRC bot by llao on Monday March 12, 2018 @07:27AM (#16567426)
> I don't get why the author hates slack so much.

He gives a nice reasoning in the last paragraph:

Slack is a walled garden. Their proprietary API is defined by them and only implemented by them. They can and will shut off parts you depend on (like the IRC+XMPP gateways that were just shut down).

Re:How to write an IRC bot by nickez on Monday March 12, 2018 @07:52AM (#16567533)
> Their proprietary API is defined by them and only implemented by them.

Is this really true though? Doesn't Mattermost have a slack-ish-compatible interface?

Re:How to write an IRC bot by llao on Monday March 12, 2018 @08:01AM (#16567573)
Well, others can try to implement parts of it but it is a cat and mouse game of wasting human resources. Mattermost managed to get some compatibility https://docs.mattermost.com/developer/webhooks-incoming.html...
Re:How to write an IRC bot by Jaruzel on Monday March 12, 2018 @09:55AM (#16568131)
> I've shown IRC to people who love Slack and I usually get "Ugh, it looks so old fashioned and difficult to use" as a reaction.

This is the exact reason why I don't like Slack - It takes up WAY too much screen estate. At least with IRC I can format it in a way that I prefer, AND be able to use the rest of my screen for other tasks.

Re:How to write an IRC bot by simias on Monday March 12, 2018 @10:51AM (#16568486)
Slack and Discord (which seem to be the "hype" chats these days) are pigs both in terms of real estate and resource usage. I can easily see a backlog of nearly a hundred messages in a single terminal IRC frame but I'm lucky if I can see 10 messages in Slack or Discord. So much scrolling to catch up with chat history, not to mention how laggy it feels if you don't have a high end PC. I can't easily script the client, I can't easily self-host and script the server and I'm stuck with a proprietary architecture at the whims of the devs. Amazing. You'll have to pry irssi out of my cold dead hands.
Re:How to write an IRC bot by nopacience on Monday March 12, 2018 @11:06AM (#16568600)
Most people who use Slack haven't ever used IRC professionally (or at all) - I've shown IRC to people who love Slack and I usually get "Ugh, it looks so old fashioned and difficult to use" as a reaction. Probably the same people that never used a terminal and have the same reaction at first. And then you teach them a thing or two, let them evolve and weeks later when you less expect it, that same person is thriving on the terminal he hated initially. I have seen this happen a couple times... windows people saying linux is awkward. or even that i3-wm is awkward, until they get to learn it and they completely change their mind.

Slack has its merits, but plain IRC also works fine.

The same people that prefer slack because they never really tried IRC, might say they prefer slack because it allows them to write BOTs.

BOTs in irc is easy, there are 3 kind of bots:

- bots that interact: User types something in a channel or via private message. The bot will receive that message and the user that typed it. then it will parse the message and take an action. Examples of interaction messages:

-- msg to bot: google this: "time now ?" (then the bot connects to google and makes a query and replies to this message): UTC 10h20 -- msg to bot: reboot

- bots that say stuff: You are on a chatroom and then all of a sudden a bot joins and says something ie. "Your new website has been updated". OR, "Someone made a pullrequest on github, please somebody go there and accept it"

- a mix of those 2: the bot will say stuff and also accept/interact commands

IRC is really simple. The bot simply reads text and takes action. Or, just take action and talk on the channel. Its completely diffrent from slack bots because it is simpler it will not need the programmer to set up a WEB SERVER in order to receive messages from slack. Seriously.. the bot should connect there just like the user does and read messages, parse and take action.

Long live IRC =)

BOTs that say stuff works this way: You are on a channel and then all of a sudden a BOT joins and says: "The new release of your website has been successfully updated"

Re:How to write an IRC bot by yoz-y on Monday March 12, 2018 @12:33PM (#16569294)
> And then you teach them a thing or two, let them evolve and weeks later when you less expect it, that same person is thriving on the terminal he hated initially. I have seen this happen a couple times... windows people saying linux is awkward. or even that i3-wm is awkward, until they get to learn it and they completely change their mind.

Usually I have met two kinds of people. Those who do not need any motivation to learn new things about computers. And those who will just flat out refuse to learn anything that remotely does not look like what they are already accustomed to.

Re:How to write an IRC bot by panopticon on Monday March 12, 2018 @02:20PM (#16570202)
> The same people that prefer slack because they never really tried IRC, might say they prefer slack because it allows them to write BOTs.

The biggest "win" for Slack where I worked was getting the non-engineers on it (product, UX, etc), and I doubt they prefer Slack because of the bot writing :)

Re:How to write an IRC bot by yoz-y on Monday March 12, 2018 @12:29PM (#16569255)
Well, you can set up a web server using netcat too. Just recently there was an article on HN doing basically that.

However Slack does require HTTPS which complicates things, but is also quite a must in current day and age.

Re:How to write an IRC bot by SlowBro on Monday March 12, 2018 @07:33AM (#16567456)
What’s the nicest looking IRC client these days?

I lately only ever use any chat client sporadically so I’m out of touch, but may be needing a platform soon.

Interesting note: I worked at AOL when AIM was introduced and was one of the first users :-P When I moved to tech support of a local cable internet company that was our official work chat :-)

Re:How to write an IRC bot by croon on Monday March 12, 2018 @07:46AM (#16567507)
As someone who's been on irc since the mid 90s and have had and still do have a couple of Irssis running in screens for 10+ years, I have to say that irccloud is pretty great for ease of use. There was an open source clone called ircanywhere, but it seems abandoned.

I have no idea what the future holds, and I always welcome new tools and disruptions, and I'm using slack, discord, messenger etc for various communities. What keeps me from leaving irc is:

* friction in moving all users that have been using an IRC channel for 20 years

* stupid stuff in slack and messenger like lock in and slow search. I really like grep:ing logs for links and discussions and then reading the context up and down, which I have found difficult in web services.

Re:How to write an IRC bot by xPaw on Monday March 12, 2018 @08:52AM (#16567806)
If you're looking for an open source alternative to IRCCloud, then The Lounge[1] pretty much fills that niche.

[1] https://github.com/thelounge/thelounge

Re:How to write an IRC bot by LinuxBender on Monday March 12, 2018 @11:35AM (#16568818)
Disclaimer: I personally do not need emoji's.

Does TheLounge let users upload custom emoji? I ask, because my coworkers say, "You can take Slack from my cold dead hands". There was even a great emoji war.

I would like to stand up a web interface to IRC and let folks play around on it. I tried Convos, but it didn't seem to fit that piece of the puzzle.

For the backend, I have always used UnrealIRCD + Anope services. It has always been rock solid and scales beyond any need I could imagine. It would be great if there were a modern web interface I could put in front of it that people would want to use.

Re:How to write an IRC bot by MaxLeiter on Monday March 12, 2018 @11:41AM (#16568868)
No, it does not support that. Just uses unicode emojis and lets the OS/browser handle the rendering
Re:How to write an IRC bot by LinuxBender on Monday March 12, 2018 @11:44AM (#16568893)
Thanks. I totally understand and agree. The problem I am faced with is that Slack (a former gaming company) has gotten people hooked / trained / conditioned on the custom emoji.
Re:How to write an IRC bot by xPaw on Monday March 12, 2018 @11:42AM (#16568871)
No, it doesn't support custom emojis. Even if it did, only this particular client would display them and not any other IRC client.
Re:How to write an IRC bot by LinuxBender on Monday March 12, 2018 @11:46AM (#16568914)
Thankyou. That would probably be ok, since Slack using the IRC gateway had the same effect.
Re:How to write an IRC bot by prophesi on Monday March 12, 2018 @11:05AM (#16568596)
+1 to The Lounge. It's how I was able to get a few friends & coworkers to start using IRC.
Re:How to write an IRC bot by astorije on Thursday March 22, 2018 @06:41PM (#16653403)
Are you using The Lounge for work? Would you mind sharing which company? It would help me find out if/what companies are (disclaimer: I'm one of the dev). Thanks!
Re:How to write an IRC bot by tomphoolery on Monday March 12, 2018 @10:51AM (#16568483)
haha this client name reminds me of the old mIRC Channel List days!
Re:How to write an IRC bot by TausAmmer on Monday March 12, 2018 @09:52AM (#16568112)
Yeah, irssi is running perfectly fine for last 20 years, icq, msn, Skype, discord, everything comes and goes, longins/password got forgotten and lost.

But there is always that irc channel easily to get into and will be there in 20 years.

I know that I can extend my irssi client with plugins needed to preserve history, flag stuff, save in database by triggers, then export that in whatever way I want and serve to the users.

Re:How to write an IRC bot by FranOntanaya on Monday March 12, 2018 @11:26AM (#16568749)
I just wish irssi supported other scripting languages. I don't particularly dislike Perl and it's not like it needs to do very complex stuff, but it'd be fun to tinker with it with my language of choice.
Re:How to write an IRC bot by corobo on Monday March 12, 2018 @01:46PM (#16569897)
Use the irssi proxy and connect any scripting language or bot framework you like (that supports IRC of course)

I used to do this anyway so that I could reload the bot without reconnect spam

Re:How to write an IRC bot by op00to on Monday March 12, 2018 @10:15AM (#16568237)
I hate grepping my IRC logs. I wish ZNC had a plug-in that allowed searching logs.
Re:How to write an IRC bot by Sir_Cmpwn on Monday March 12, 2018 @11:54AM (#16568957)
ZNC has the shell plugin, which I use for grepping logs. It's still grepping logs but I can do it from my IRC client.
Re:How to write an IRC bot by op00to on Monday March 12, 2018 @12:24PM (#16569211)
That’s literally the first actual use of the shell functionality that makes sense!
Re:How to write an IRC bot by craftyguy on Monday March 12, 2018 @11:16AM (#16568671)
Here are a couple I just found. I've not tried either but hope to later today.

1) https://github.com/pR0Ps/znc-logsearch

2) https://github.com/robinsmidsrod/znc-log-viewer/blob/master/...

Re:How to write an IRC bot by gsich on Monday March 12, 2018 @07:57AM (#16567557)
I'm using Louge [0] It's a web application with nodejs stuff.

[0] https://github.com/thelounge/thelounge

Re:How to write an IRC bot by mfer on Monday March 12, 2018 @08:59AM (#16567834)
You might want to take a look at https://www.irccloud.com.

The best apps tend to be platform dependent. I know many who like http://colloquy.info for mac, for example.

Re:How to write an IRC bot by giancarlostoro on Monday March 12, 2018 @08:34AM (#16567729)
I'm fairly impressed with Quassel:

https://quassel-irc.org/

Re:How to write an IRC bot by kuschku on Monday March 12, 2018 @12:29PM (#16569256)
Especially when used in the core/client split version, which allows you to use the webclient https://github.com/magne4000/quassel-webserver/, the irssi-client https://github.com/phhusson/quassel-irssi, the iOS client https://woboq.com/iquassel.html, the Android client https://play.google.com/store/apps/details?id=com.iskrembile... or https://f-droid.org/packages/com.iskrembilen.quasseldroid/, the new alpha of the new android client https://quasseldroid.info/, and the fulltext search https://github.com/justjanne/quassel-rest-search (with demo here: http://s3.kuschku.de/public/quassel-rest-search.mp4 )

Quassel alone is a kinda nice client, with the entire ecosystem around it, it becomes amazingly powerful.

And the beauty of the Qt client is that, being Qt, you can fully style it with css - e.g. https://bugs.quassel-irc.org/projects/quassel-irc/wiki/Style...

Disclaimer: I contribute to some of the above mentioned projects)

Re:How to write an IRC bot by giancarlostoro on Tuesday March 13, 2018 @07:58AM (#16575389)
That is so incredible! I've never split it up, I just use the "all-in-one" package usually. Might take the time to deploy the detached server on DO sometime.
Re:How to write an IRC bot by janvdberg on Monday March 12, 2018 @09:34AM (#16568014)
For me: WeeChat (running in a screen/tmux) + Glowing Bear (webinterface WeeChat frontend).
Re:How to write an IRC bot by LinuxBender on Monday March 12, 2018 @11:28AM (#16568764)
WeeChat + screen is awesome. I was using it for Slack. It handled their strange use of +v/-v for user is away at least, better than Epic

I've never tried Glowing Bear. Maybe that would be a nice way for friends to get comfortable with IRC?

Re:How to write an IRC bot by janvdberg on Monday March 12, 2018 @11:36AM (#16568830)
You still can, with Wee- Slack (https://github.com/wee-slack/wee-slack) that's what I use now.
Re:How to write an IRC bot by LinuxBender on Monday March 12, 2018 @12:56PM (#16569487)
Oh sorry, I just meant a way to get friends comfortable with IRC by having a simple doc that says how to use Glowing Bear in front of a simple weechat config so that they could easily move to IRC vs. slack. i.e. even using freenode with a modern web interface. I've seen the wee-chat-slack plugin, but it feels wrong using a normal IRC client to a heavy web stack.
Re:How to write an IRC bot by mattcoles on Monday March 12, 2018 @07:40AM (#16567478)
If you have a Mac, Textual is a great IRC client although their upgrade policy is a bit frustrating, in that upgrades don't seem to be free for life, only discounted.
Re:How to write an IRC bot by madeofpalk on Monday March 12, 2018 @08:03AM (#16567578)
'Great' is relative. Textual (and Colloquy) are tolerable at best.
Re:How to write an IRC bot by elsurudo on Monday March 12, 2018 @10:08AM (#16568199)
For Mac, Colloquy is quite good: http://colloquy.info

Works well, and is a native app that fits well into the general ecosystem.

Re:How to write an IRC bot by op00to on Monday March 12, 2018 @10:14AM (#16568229)
I think Textual looks cleaner and is more functional than Textual - probably because the Textual team picks and chooses what Mac app design cues to use.
Re:How to write an IRC bot by drdeca on Monday March 12, 2018 @10:55AM (#16568518)
Was the second instance of "textual" (out of the 3) meant to say something else?
Re:How to write an IRC bot by op00to on Monday March 12, 2018 @12:25PM (#16569216)
Ha - good catch. Colloquy not Textual. I was on the John.
Re:How to write an IRC bot by purerandomness on Monday March 12, 2018 @08:41AM (#16567758)
IRCCloud and their night theme + their Android + iOS app.
Re:How to write an IRC bot by _sdegutis on Monday March 12, 2018 @02:20PM (#16570197)
I prefer Limechat for macOS. It’s plain and simple but not terminal based or archaic looking. At least to me anyway. And it has themes.
Re:How to write an IRC bot by coldacid on Monday March 12, 2018 @01:36PM (#16569789)
When I was a wild-haired youth, mIRC was my client of choice, but these days I much prefer KVIrc.
Re:How to write an IRC bot by kough on Monday March 12, 2018 @07:43AM (#16567489)
I use Limechat on OSX and Hexchat on Windows and am mildly dissatisfied with both.
Re:How to write an IRC bot by elsurudo on Monday March 12, 2018 @10:09AM (#16568206)
I already commented on this, but have you tried Colloquy for Mac?

http://colloquy.info

Re:How to write an IRC bot by verylittlemeat on Monday March 12, 2018 @09:18AM (#16567919)
bitchx
Re:How to write an IRC bot by sexydefinesher on Monday March 12, 2018 @10:15AM (#16568236)
irssi, it really enhances the experience when you can brag about your e-peen
Re:How to write an IRC bot by eximius on Monday March 12, 2018 @06:57PM (#16572456)
Slack is literally worse than XMPP or IRC at most things. The only improvement that Slack has is newer UI and you can bill someone to manage it on your company's behalf instead of paying someone in house.