dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.2.5
irsol has quit [Remote host closed the connection]
Azure has joined #cinch
irsol has joined #cinch
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Azure has quit [Quit: My MBP went to sleep.]
sarkyniin has joined #cinch
Azure has joined #cinch
apt-get_ has joined #cinch
Azure has quit [Quit: My MBP went to sleep.]
sarkyniin has quit [Ping timeout: 256 seconds]
apt-get_ has quit [Remote host closed the connection]
sarkyniin has joined #cinch
apt-get_ has joined #cinch
sarkyniin has quit [Ping timeout: 264 seconds]
dRbiG has joined #cinch
<dRbiG> hello
<dominikh> hi.
<dRbiG> are there any examples of how to do more advanced cinch setups? e.g. self-documenting commands, accepting the same stuff in `botnick: ...' and on '/msg botnick ...'?
<dRbiG> hello dominikh
<dRbiG> or am I just stretching it?
Azure has joined #cinch
apt-get_ has quit [Remote host closed the connection]
<dRbiG> hmm, no answer whatsoever?
ConcernedHobbit has joined #cinch
<ConcernedHobbit> So, is there any good way to check if an user is authenticated with NickServ?
<leftylink> dRbiG: oh man... well my idea for the multi-command thing is https://gist.github.com/an1itdp01y/8791843
<leftylink> ConcernedHobbit: also consider http://www.rubydoc.info/gems/cinch/Cinch/User#authed%3F-instance_method
<ConcernedHobbit> Ty. Also, is there a way to send a raw message?
<dRbiG> leftylink: aye, thank you for a reply, and an idea :)
<leftylink> ConcernedHobbit: ah. that sounds like you want http://www.rubydoc.info/gems/cinch/Cinch/IRC#send-instance_method
<ConcernedHobbit> leftylink: Amazing. Thank you very much.
<ConcernedHobbit> I thought this'd be inactive, but... leftylink proved me wrong.
<leftylink> dRbiG: I also have an idea for command help, but I'm really not sure whether it's good. but what I did was !help command https://github.com/an1itdp01y/cinch-tyrant/blob/master/bot.example.rb#L63 , and then each plugin has a COMMANDS constant like https://github.com/an1itdp01y/cinch-tyrant/blob/master/lib/cinch/plugins/tyrant-card.rb#L25 , where each element is just a Cmd object, defined as https://github.
<leftylink> com/an1itdp01y/cinch-tyrant/blob/master/lib/cinch/tyrant/cmd.rb
<leftylink> maybe if I searched for how other people do it I might get some other ideas, but that's what I came up with
<dRbiG> aye aye, I already got something working
<dRbiG> it's not as I would like it to be, but it's better than nothing
<leftylink> there's also something interesting we can do if we set the help attribute of a Plugin, https://github.com/cinchrb/cinch/blob/master/lib/cinch/plugin.rb#L435 but it didn't suit my needs personally (I need to hide some commands based on user auth) so I didn't make use of that myself
<dRbiG> mhm, my takeout is that docs do matter *a lot* for libararies
<dRbiG> libraries*
<dominikh> Cinch isn't the place to look for good documentation, I'm afraid.
britneywright has joined #cinch