dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.2.4
Azure has quit [Quit: Blue Sky Fish]
Azure has joined #cinch
britneywright has joined #cinch
britneywright has quit [Client Quit]
Azure has quit [Read error: Connection reset by peer]
Azure has joined #cinch
frog|OFF is now known as green-big-frog
green-big-frog is now known as frog|OFF
tyil has joined #cinch
<tyil> hi
<tyil> I'm trying to make cinch send a CTCP VERSION request to a user, and reply to said user with the response
<dominikh> ok
<tyil> so far I have `c = User(nick).ctcp("VERSION")` and then `m.reply c`
<tyil> but it just puts "VERSION" as the message
<tyil> any help on what I'm doing wrong
<tyil> ?
<dominikh> what makes you think that User(nick).ctcp("VERSION") will contain the user's answer? that command sends the message and returns. the user isn't even required to respond, so waiting for a response there would be a bad idea
<dominikh> you'll have to explicitly listen for the response
<tyil> I just tried out something, since there was no example for it
<tyil> how would I go about waiting for a reply?
<dominikh> don't think of it as waiting for a reply, think of it as waiting for a message. so a combination of listen_to, and the :notice event
postmodern has quit [Quit: Leaving]
phelps has joined #cinch
<phelps> how would I go about storing simple key/value data persistently
<phelps> I'm trying to use Moneta but it doesn't seem to work with the threads
<tyil> store it in a nosql database?
<phelps> doesn't matter to me much what the end container is
<phelps> I tried File, YAML, and Daybreak
<phelps> Daybreak on its own and File and YAML with Moneta
<leftylink> oh. yeah for me personally I used yaml. seems ok
<phelps> I just can't get it to work between threads
<leftylink> ahhh. yeah I can imagine how that could be a problem
<Wobbley> I was thinking of implementing ActiveRecord into my irc bot, primarely for learning more ruby :p Is that a major overkill? :P
<Wobbley> I saw there were some plugins to use yaml as storage with cinch, i currently use sqlite and do the queries manually. If you get up to 100 "records" anyone know how the "select" time would be with the yaml plugin for cinch?
Azure has quit [Ping timeout: 244 seconds]
Azure has joined #cinch
AnxiousGarlic has joined #cinch
AnxiousGarlic has left #cinch [#cinch]
xbob has joined #cinch
britneywright has joined #cinch
frog|OFF is now known as green-big-frog
FredrIQ has joined #cinch
FredrIQ is now known as Guest95231
Guest95231 has quit [Changing host]
Guest95231 has joined #cinch
Guest95231 is now known as FIQ
waxjar has quit [Ping timeout: 240 seconds]
green-big-frog is now known as frog|OFF
frog|OFF is now known as green-big-frog
<Wobbley> hmm, what is the best approach to override a certain part of cinch/plugins/identify? The globalgamers irc server requires me to message a more specific nickserv :/
<Wobbley> You MUST "/msg NickServ@services.globalgamers.net AUTH" (not just /msg NickServ).
<dominikh> Wobbley: either do not use the plugin, or monkeypatch the #identify_nickserv method, or write a patch to allow setting nickserv's name
<Wobbley> dominikh: ok, not going to monkeypatch :p
<dominikh> good choice
<Wobbley> I am pretty new to ruby, and am a bit hesitant to make an actual patch, so maybe just work something on my own
<dominikh> funnily enough, for userserv, there's already the service_name setting. could just reuse that for nickserv
<Wobbley> Yeah I saw
<Wobbley> I might just reuse that
<dominikh> it's a two-line change
<dominikh> actually I could just do it myself and save myself the hassle of dealing with a patch ;)
<Wobbley> :D
<Wobbley> <3
<dominikh> Wobbley: when you identify with that nickserv, what exactly does the "you identified" message look like? raw IRC prefered, but what I'm after is the full nickname
<dominikh> (of the nickserv service)
<Wobbley> I think it's the one I posted above?
<Wobbley> NickServ@services.globalgamers.ne
<Wobbley> ops
<Wobbley> NickServ@services.globalgamers.net
<dominikh> don't think, go find out :P identify and see what the raw message is
<Wobbley> Maybe I misunderstood the error :/ THis is what I get as a reply:
<Wobbley> [2015/03/10 16:10:59.682] >> :NickServ!NickServ@services.globalgamers.net NOTICE Gigabot_ :Your hostmask is not valid for account \u0002Gigabot\u0002. Please use the \u0002AUTHCOOKIE\u0002 command to grant yourself access. (/msg NickServ authcookie Gigabot)
<Wobbley> ok I should have put that in a gist :x
Azure has quit [Ping timeout: 252 seconds]
<Wobbley> I have used the plugin earlier on quakenet and it worked fine
<dominikh> never mind
<FiXato> if I read the site correctly, you don't have to message the service
<FiXato> you can just send /ns auth name pw
<dominikh> now *that* the plugin will never use, silly custom non-spec command that some networks add
<Wobbley> Ah thanks FiXato, I am still pretty new to GlobalGamers and doing anything advanced on IRC in general :p
<Wobbley> ok, sorry for pestering you dominikh. I guess I misunderstood, it just gave me the first error i showed you when I tired doing it manually, so I thought that was the problem
<dominikh> Wobbley: talking about that "ns" thing FiXato posted
<Wobbley> Yeah I got that, was just thinking a message would work as well, which is why I wanted to use the Identify plugin, I guess I can just add a "on connect" line somewhere. Ain't going to be pretty, but it will do :)
<dominikh> a message does work
<dominikh> "ns" is just some silly nonsense that would also work
<FiXato> dominikh, just the /ns or also /nickserv?
<dominikh> FiXato: hm?
<FiXato> are you just opposed to the /ns shorthand, or also /nickserv or any /*serv command in general?
<dominikh> any of that
<dominikh> stop arbitrarily adding IRC commands
<dominikh> and on top of that expect all IRC clients to know about these
<dominikh> "/ns" does exactly nothing for this IRC client, nor does "/nickserv"
<dominikh> "/" isn't an IRC concept, it's specific to IRC clients. you can't just invent random /crap and expect the IRC client to know that's supposed to translate to "just dump this as a raw message"
<Wobbley> So what was the outcome? Should I add a patch to enable specifing service for nickserv, are you, or shall I just find another way? :)
<dominikh> I'm working on a patch. unfortunately I also found a bug while I was working on it, so it's gonna take a minute
<Wobbley> oh I have no rush dominikh, I just appreciate that you are fixing it :)
TieSoul has joined #cinch
Azure has joined #cinch
<dominikh> Wobbley: update to version 1.7.0 of cinch-identify, set the service_name option, and it should work
<Wobbley> Thanks a lot dominikh :) I have to go make dinner, will check it out later. Now for a really noob question. I user bundler, do I just do bundler install and it will update as well?
<Wobbley> meh I can google that :P
<dominikh> no idea, I don't do bundler
green-big-frog is now known as frog|OFF
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xbob has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_djbkd has joined #cinch
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #cinch
sarkyniin has joined #cinch
postmodern has joined #cinch
sarkyniin has quit [Ping timeout: 252 seconds]
sarkyniin has joined #cinch
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #cinch
sarkyniin has quit [Ping timeout: 265 seconds]
sarkyniin has joined #cinch
apt-get_ has joined #cinch
apt-get_ has quit [Remote host closed the connection]
apt-get_ has joined #cinch
sarkyniin has quit [Ping timeout: 244 seconds]
_djbkd has quit [Remote host closed the connection]
waxjar has joined #cinch
_djbkd has joined #cinch
_djbkd has quit [Remote host closed the connection]
xbob has joined #cinch
_djbkd has joined #cinch
Liothen has quit [Ping timeout: 252 seconds]
Liothen has joined #cinch
_djbkd has quit [Quit: My people need me...]
_djbkd has joined #cinch
apt-get_ has quit [Remote host closed the connection]
xbob has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Phage has joined #cinch
<Phage> If I want the bot to store a string every time a command is issued and then compare a new string to that string next time a command is issued, how would I do that?
<Phage> dominikh:
waxjar has quit [Quit: ZNC - http://znc.in]