dominikh1 changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.0.6
Spami has quit [Quit: This computer has gone to sleep]
rickmasta has joined #cinch
padraig has joined #cinch
<padraig> hi how do can I make my bot know that an incoming message is from a private chat or not?
<padraig> I couldn't find any example in the examples folder
rickmasta has quit [Quit: Leaving...]
<dominikh> listening on :message will receive both channel and private messages, listening on :channel or :private will do what the name says, Message#channel will be nil if it was a private message.
<padraig> ok thank you! :)
jonahR has joined #cinch
jonahR has quit [Read error: Connection reset by peer]
jonahR has joined #cinch
<padraig> I'm trying to make a bot which outputs and responds to menus - how do I make a multiline response in private chat? it is just responding one line at a time very slowly
<padraig> thanks for your help by the way (in advance)
<dominikh> this is IRC and not a terminal. if it weren't printing them slowly, the server would kick you for spamming.
<padraig> right but I've seen channels where you can make a private connection to a bot
<padraig> and it's like a menu system
<padraig> I have a list of phrases in one language that the bot can translate to another
<padraig> and I wanted to be able to connect to the bot directly in a private chat to list the available phrases
<dominikh> you're probably referring to something like eggdrop's party line. that's outside of IRC and runs on its own protocol etc
<padraig> oh ok that's how it's done?
<dominikh> uses DCC CHAT as far as I am aware
<padraig> oooh thanks
<padraig> and can cinch respond to dcc?
<dominikh> if you teach it to, yes. by default it only supports DCC SEND for file transfers, not any of the other DCC commands.
<padraig> ok thanks dominikh :)
<dominikh> no problem
jonahR has quit [Quit: jonahR]
<UberDragon> is it possible to output colors on trigger responses?
* UberDragon can't find the method if so
<Cinchy> [URL] Module: Cinch::Formatting — Documentation for cinch (2.0.7)
<UberDragon> perfect thanks!
<UberDragon> dominikh: am I reading it wrong? should m.reply "string".format(:red) make that string red?
<dominikh> reading it pretty wrong, yes.
<dominikh> there's a method Format that returns a string.
<UberDragon> Format(:red, "text")
<dominikh> right.
<UberDragon> tried that first
<dominikh> and how did it not work?
<UberDragon> can I nest that "#{Format(:red, string)}" ?
<dominikh> yes, of course. that's normal string interpolation.
<UberDragon> time_stamp = Format(:red, Time.at(time).asctime)
jonahR has joined #cinch
<UberDragon> where time is seconds
<UberDragon> that's the actual line I tried
<dominikh> dominikh │ and how did it not work?
<UberDragon> hehe I'm not sure, but I definitely don't see it red once it messages to channel :P
<dominikh> I'd suggest trying in a channel that's not filtering colours
<UberDragon> ...
<dominikh> as in, one that does not have +c set.
<UberDragon> hmm nope
<UberDragon> rmm well maybe.. checking
<dominikh> !eval Channel("#cinch").send(Format(:red, "hello"))
<Cinchy> hello
<Cinchy> ["\x0304hello\x0F"]
<UberDragon> maybe it's just this client
<UberDragon> I simply didn't see the color
<UberDragon> even in your eval
<dominikh> well, I did :) so yeah, fix your client
jonahR has quit [Quit: jonahR]
rickmasta has joined #cinch
padraig has quit [Quit: padraig]
rickmasta has quit [Quit: Leaving...]
postmodern has joined #cinch
kludge` has quit [Ping timeout: 245 seconds]
kludge` has joined #cinch
rickmasta has joined #cinch
rickmasta has quit [Quit: Leaving...]
<rob_> hi, this is odd: http://hastebin.com/dofegunoko.rb
<rob_> .online? doesnt return anything?
<rob_> oh my bad
<rob_> doh, lol
<dominikh> :)
<dominikh> yeah, we don't tend to return proper false values, they're often nils.
<rob_> aye, fair enough
<rob_> this is very confusing:
<rob_> is even more confusing
<dominikh> all I see are IRC logs, so I am not sure what I should be looking at, since there's no.. Cinch in there
<rob_> w00z is a cinch bot
<rob_> it loses ops when i part and join the channel
<rob_> even though the server thinks its opped
<dominikh> what network?
<dominikh> what client?
<rob_> the network daemon is ngircd
<rob_> the client is cinch
<rob_> those logs are from irssi
<dominikh> the client is irssi ;)
<dominikh> well, ask them. must be sending a wrong NAMES list
<rob_> ok
<dominikh> nothing to do with cinch :)
<rob_> the thing is, cinch doesnt think its opped
<dominikh> it should think it's opped by the point it received the +o mode change
<dominikh> rob_: I wonder why you censored the channel name in the log when oen can just whois the bot ;)
<rob_> hmm?
<rob_> its a different network..
<rob_> same bot name
<dominikh> different network, of which the address is in the log ;)
<rob_> oh aye
<dominikh> but of course now I can't join the channel and observe because I'd need permission
<rob_> :)
<rob_> internet detective
<dominikh> attentive reader, but sure :P
postmodern has quit [Quit: Leaving]
dominikh has quit [Quit: WeeChat 0.4.0-dev]
rikai has quit [Read error: Connection reset by peer]
rikai has joined #cinch
Cinchy_ has joined #cinch
Cinchy has quit [Ping timeout: 264 seconds]
dominikh has joined #cinch
UberDragon has quit [Remote host closed the connection]
Cinchy_ is now known as Cinchy
v0n has joined #cinch
<rob_> does the 'execute' method run on a match?
<dominikh> if you didn't specify a different method for the match, yes.
v0n has quit [Quit: WeeChat 0.4.2-dev]
<rob_> dominikh: thanks
v0n has joined #cinch
rikai has quit [Read error: Connection reset by peer]
rikai has joined #cinch
UberDrag_ has joined #cinch
UberDrag_ is now known as Uber|Dragon
rikai has quit [Read error: Connection reset by peer]
rikai has joined #cinch
Spami has joined #cinch
<Uber|Dragon> how can I listen for nick changes with cinch?
<Uber|Dragon> thanks
jonahR has joined #cinch
Spami has quit [Quit: This computer has gone to sleep]
jonahR has quit [Quit: jonahR]
txdv has joined #cinch
Cinchy has quit [Write error: Broken pipe]
Cinchy has joined #cinch
jonahR has joined #cinch
space has joined #cinch
v0n has quit [Ping timeout: 245 seconds]
space has quit [Read error: Connection reset by peer]
Uber|Dragon has quit [Remote host closed the connection]
txdv has quit [Ping timeout: 264 seconds]
txdv has joined #cinch
postmodern has joined #cinch
<dyoung522> thought you would appreciate that, if you hadn't already seen it.
<dyoung522> s/would/might/
<dyoung522> well, nevermind, I forgot you're not a fan of rails.
jonahR has quit [Quit: jonahR]
Spami has joined #cinch
<dominikh> right ;)
Uber|Dragon has joined #cinch