<dominikh>
(which will be the next release number)
<Igneous>
ah so it does, sorry about that, I'm blind
<dominikh>
don't worry
<Igneous>
also, while I've got you, is there an on :connect event?
<dominikh>
yes.
<Igneous>
hm.. I guess I'm just failing to use it properly then, oh well. I won't waste your time with that
<dominikh>
go ahead
<Igneous>
nah, I'll pry at it for another 30 minutes. It might just be choking out because I'm trying to use bot.oper in it ;)
<dominikh>
heh
<dominikh>
that's likely :P
<Igneous>
but just to be sure, I just use it like "on :connect do &block", right?
<dominikh>
yes
<Igneous>
cool
<dominikh>
(also note: Bot#oper won't wait for a reply. it fires off the oper request and will probably return before the server actually gave you oper rights)
<Igneous>
good to know, I guess I'll block until my mode changes then
<dominikh>
if the server sends a message on success, you can hook on that, too. or generally hook on mode changes
<dominikh>
better than a busy loop and constantly checking if you're op yet
<Igneous>
true, it does indeed say I've entered the PANTS FREE ZONE
<Igneous>
ratbox is a lol
<dominikh>
heh
<sickweezle>
ratbox? O.o
<dominikh>
efnet uses it, eh? why am I not surprised :>
<Igneous>
I think you might get a pull request from me. I'm seeing the need for a Cinch::Bot#quote.
bean has quit [Quit: Computer has gone to sleep.]
<Igneous>
e.g: bot.quote(:opme, "#channel")
<dominikh>
Igneous: IRC#send
<Igneous>
yeah that's kinda ugly though :/
<dominikh>
not really, no.
<dominikh>
it's the exact same thing; only in the correct namespace and with a sensible argument :P
<Igneous>
ah you're right.. I thought I remembered it looking more complicated than that
<sickweezle>
Oh! That's neat… hadn't realized you could do that.
<sickweezle>
Although… on the subject, User#authed? means that they are logged in / confirmed as being them by nickserv?
<dominikh>
nickserv or comparable, depending on the network, yes
<sickweezle>
Okay. Yay. Thank you.
<sickweezle>
Wanted to confirm, but the code was beyond me.
<dominikh>
but yeah, gotta fix that typo
robotmay has joined #cinch
heiko has joined #cinch
heiko has quit [Quit: heiko]
heiko has joined #cinch
dieterdemeyer has joined #cinch
<dieterdemeyer>
I'm setting up an irc bot with cinch and I have written some plugins. Is there a way to verify that only certain users are allowed to execute commands through the bot ?
postmodern has quit [Quit: Leaving]
v0n has joined #cinch
v0n has quit [Ping timeout: 260 seconds]
clj_newb has joined #cinch
<clj_newb>
Hi, it is possible to write to a specific channel when a event from eventmachine pops up?
sickweezle is now known as lagweezle
<clj_newb>
I'm trying to integrate a very simple tweetstream callback to send to a channel when someone mentions a specific user (me in this case)
<lagweezle>
I'm a noob, so take this with a truckload of salt, but it looks like Channel#msg(text, notice = false) might be what you'd need to use for the message send to an arbitrary channel. Obviously you can't use m.reply…
<waxjar>
you can fire of custom events if i'm not mistaken and listen for those, running the bot in a separate thread
<waxjar>
Channel('#channel-name') to get a specific channel, yeah
<clj_newb>
thanks lagweezle and waxjar
<lagweezle>
waxjar: Wow. That's a lot easier than I'd expected. ^^
<clj_newb>
I did include Cinch::Helpers too but Channel("#my_chan") fails with this error: channel_list.rb:14:in `find_ensured': undefined method `isupport' for nil:NilClass (NoMethodError)
<clj_newb>
The bot at the moment of creating the object is not yet connected
<clj_newb>
might that be the problem?
<clj_newb>
I'm creating the object in a plugin
<clj_newb>
n the initialize method
<waxjar>
Cinch::Helpers is mixed in be default, so there's no need to include that :)
<clj_newb>
cool waxjar, thanks
<waxjar>
you just call Channel('#') in the method that handles the event, where you'd do m.channel normally for
<waxjar>
example
<clj_newb>
but I'm creating the channel object in the initialization of my plugin
<clj_newb>
so @bot.irc is nil at this point
<clj_newb>
I guess
<waxjar>
that's not necessary, Channel('#') just creates a channel object you can interact with
<waxjar>
you'll probably want to join it though
<clj_newb>
but it is raising a undefined method `isupport' for nil:NilClass (NoMethodError)
<clj_newb>
the line is @bot.irc.is...
<clj_newb>
so irc is not yet initialized (visible at least)
<waxjar>
can you show the code clj_newb?
<clj_newb>
no need to, I've managed to fix it, the code is executed when the bot join the channel
<clj_newb>
thanks anyway"
robotmay has quit [Remote host closed the connection]
<clj_newb>
Anyone had some experience with cinch plugins and TweetStream? When the code is executed in irb works just fine
ex0a has joined #cinch
txdv has quit [Ping timeout: 246 seconds]
txdv has joined #cinch
txdv_ has joined #cinch
txdv has quit [Read error: Connection reset by peer]
txdv_ has quit [Ping timeout: 245 seconds]
<clj_newb>
Hi I'm trying to track a keyword with tweetstream and cinch
<clj_newb>
but I cannot make it work , neither with plugin nor a class a part