whyrusleeping / hellabot

A hella awesome irc bot framework written in go, Simply plug in your triggers and run!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TODO: Figure out a way to do connection hijacking of SSL connections

flexd opened this issue · comments

I am thinking maybe we could do something where there is a basic core of the bot that connects to the IRC server, and is it's own process, and then the bot would connect to that instead of the IRC server directly. That way you could restart the bot process as much as you'd like, and the IRC connection would stay up.

The core would have to deal with server PINGs on it's own, and just discard every other message when the bot itself is not connected. Not sure if this is too much work to be useful or if it just ends up being impractical.

What do you think @whyrusleeping ?

Maybe something like this https://github.com/jpillora/go-tcp-proxy/blob/master/proxy.go

Edit: I've set it up on my vps with -unwrap-tls and it working fine so far

@flexd are you still planning to work on this?