dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.3.1 | You're being logged at https://irclog.whitequark.org/cinch/
jrabe has quit []
jrabe has joined #cinch
Kannkor has joined #cinch
<Kannkor> Hi. I just started looking at Ruby options for IRC bots. My primary goal is to have all chat passed between 2 irc servers/channels. IE: server1#channel1, and server2#channel1 (channels are the same name). I believe from reading I can't have 1 bot connected to 2 servers at the same time. Does anyone have a suggestion for handling this scenario?
<dominikh> two bots, one per server, each running in their own thread.
<Kannkor> And for passing the information to the other channel?
<dominikh> call methods on objects. bot1.channels.find("#foo").send(msg), or whatever the actual API is
<Kannkor> I'm not sure I'm quite understanding. Let me give an example of what I want to do, to make sure we're on the same page. On Server1#channel1, I (as a user) say: Hello, I want the bot to read from Server1#channel1, then output that text into Server2#channel1.
<Kannkor> I created a super simple bot using cinch already to read the text/user etc. Then hit a google stump when reading about multiple servers. I'm just not sure how to pass that information across.
<dominikh> register an event listener for channel messages, call the correct methods on the other bot instance to send the message.
Liothen has quit [Ping timeout: 240 seconds]
snapcase has joined #cinch
snapcase has quit [Ping timeout: 240 seconds]
Liothen has joined #cinch
<Kannkor> Do you know if there are any examples of that out there that run multiple bot instances? Do I need to do this as plugins? So far I"m just working off various examples from git, and they all use: bot.start, which seems to be thread locking so I can't start 2 instances
Azure|dc has joined #cinch
Azure has quit [Ping timeout: 240 seconds]
Azure|dc has quit [Read error: Connection reset by peer]
Azure has joined #cinch