dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.2.5
bosma has joined #cinch
marchtemp has joined #cinch
<marchtemp>
hey guys, I'm trying to send a message ad hoc without having an event
<dominikh>
the Cinch APIs can be used from any context, doesn't have to be inside a handler
<dominikh>
bot.Channel("#foo").send("bar") will work anywhere. or if that's too ugly: bot.channel_list.find_ensured("#foo").send("bar")
<marchtemp>
do I need to start a bot first?
<dominikh>
if the bot's not connected to the server, how is it going to send a message? :)
<marchtemp>
well, I'm trying to have a loop that checks my email box and then sends a message to IRC
<dominikh>
also, if your use case is to fire up a bot, send a message, then quit again, you will need a handler: the :connect handler, so you send the message after you successfully connected, not before
<marchtemp>
bot.start blocks, right?
<dominikh>
yes
<marchtemp>
so I can't just do bot.start and then have my email loop
<dominikh>
threads are a thing
<marchtemp>
I see, let me google that
<marchtemp>
what's a short way to send a private message?
<dominikh>
bot.User("foo").send("bar").
<marchtemp>
thanks a lot
djbkd has joined #cinch
djbkd has quit [Quit: My people need me...]
Zackio is now known as CaveJohnson
sarkyniin has joined #cinch
eebs has joined #cinch
CaveJohnson is now known as Zackio
bosma has quit [Ping timeout: 265 seconds]
postmodern has quit [Quit: Leaving]
postmodern has joined #cinch
sarkyniin has quit [Ping timeout: 256 seconds]
sarkyniin has joined #cinch
eebs has quit [Quit: Leaving.]
sarkyniin has quit [Ping timeout: 252 seconds]
sarkyniin has joined #cinch
sarkyniin has quit [Remote host closed the connection]