dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.0.10
postmodern has quit [Quit: Leaving]
space has joined #cinch
postmodern has joined #cinch
Spami has quit [Quit: This computer has gone to sleep]
postmodern has quit [Quit: Leaving]
space has quit [Changing host]
space has joined #cinch
rikai has quit [Read error: Connection reset by peer]
rikai has joined #cinch
rikai_ has joined #cinch
rikai has quit [Ping timeout: 272 seconds]
rikai has joined #cinch
rikai_ has quit [Ping timeout: 245 seconds]
kludge` has quit [Ping timeout: 246 seconds]
kludge` has joined #cinch
AJLee has joined #cinch
<AJLee> Hello everybody.
<AJLee> Alright, so I'm trying to get my bot to respond to text without a prefix, is there a way to do that?
dominikh_ has joined #cinch
<dominikh_> disable the prefix for the entire plugin via `set :prefix, //` or disable the prefix for a single matcher with `, use_prefix: false` on the matcher.
<AJLee> Awesome, thanks
<somasonic> are there any known issues with the :quit event? i can't get it to fire
<somasonic> nvm. figured it out
<somasonic> a better question: is there any way to determine which channels a user that just quit was in?
<dominikh_> no.
<dominikh_> once a user quit we don't have that information available anymore
* somasonic nods
<AJLee> Is there a way to specify {bot.nick} in a 'match
<somasonic> AJLee, match /hello #{@bot.nick}/
AJLee has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<somasonic> lol.
<dominikh_> that will not work.
<dominikh_> the match method is a class level method and executes long before there's any bot in existence or connected
<somasonic> ah
<somasonic> at least he left at the exact same time I answered him, then
<somasonic> :D
<dominikh_> heh
dominikh has quit [Ping timeout: 240 seconds]
Cinchy has quit [Ping timeout: 252 seconds]
Cinchy has joined #cinch
<dominikh_> well that's not cool. IRC client on the server not reconnecting and no chance for me to debug it right now…
<somasonic> ouch
<dominikh_> the joy of sitting in university.
dominikh has joined #cinch
<dominikh_> there we go, the joy of a weechat relay client on the mobile phone :P
<somasonic> lol
<somasonic> british, dominikh_?
<dominikh_> nope
<somasonic> ah, I don't usually hear many people except brits saying university as opposed to college
<dominikh_> german ;)
kludge` has quit [Ping timeout: 272 seconds]
kludge` has joined #cinch
space has quit [Remote host closed the connection]
kludge` has quit [Ping timeout: 272 seconds]
kludge` has joined #cinch
<Netfeed> university all the way :)
<Netfeed> isn't a university in the us a collection of colleges?
somasonic has left #cinch ["fin."]
dominikh_ has quit [Quit: Page closed]
<catepillar> Netfeed: that would be right
<catepillar> but we go to college in the states, not go to university
<Netfeed> we got the university in sweden :)
<Netfeed> go to*
space has joined #cinch
space has quit [Read error: Connection reset by peer]
Spami has joined #cinch
^WeirdThall^ has joined #cinch
<catepillar> seems like an interesting bot
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #cinch
prgTW2 has joined #cinch
<prgTW2> hello
<prgTW2> is it possible to send a message to a given user in cinch?
AJ-Lee has joined #cinch
<AJ-Lee> I'm trying to write a plugin that's based off of dominikh's commands.rb (and by based off of I mean almost entirely verbatim) and I'm getting the following exception: "undefined method `plugin' for Commands:Class" what am I doing wrong? :(
<catepillar> prgTW2: try User("username").say
<catepillar> AJ-Lee: i would need to get home to help with that one
<AJ-Lee> Alright, well I'll be here until it
<AJ-Lee> Alright, well I'll be here until it's answered
<AJ-Lee> XD
postmodern has joined #cinch
<cout> AJ-Lee: :(
<cout> you should stick around after it's answered too
<cout> pleeeease
<AJ-Lee> Well then maybe I will put my BNC here
<AJ-Lee> :P
<cout> hard to guess what the problem is without seeing the code
<AJ-Lee> That's the code
<cout> I don't have that in any of my plugins
<cout> I think you can comment out that line and it will work
<AJ-Lee> Well I want that line to work
<AJ-Lee> That's kinda the point
<cout> I'm not sure where plugin and help come from; I had to roll my own
<AJ-Lee> Do you have any actual suggestions? Like maybe how to get that working, if I need to write another helper or plugin?
<cout> why do you specifically need that line?
<AJ-Lee> Because: say I write a ~die script
<AJ-Lee> I want to be able to add to the script those too lines, to output when you say ~c
<AJ-Lee> For help
<prgTW2> catepillar: say is not even mentioned in docs from what I see
<cout> AJ-Lee: well that code is a few years old
<cout> I think what you want is: set plugin_name: 'foo' and set help: 'bar'
<AJ-Lee> Okay I'll try that when I get back
<cout> prgTW2: there are docs?
<cout> I've always just grepped the source
<cout> wow, I didn't know that was there
AJ-Lee has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
AJ-Lee has joined #cinch
<prgTW2> nevermind, User('username').msg (also known as "send", "privmsg") :)
<prgTW2> thanks a bunch :)
<catepillar> np
prgTW2 has quit [Quit: prgTW2]
<AJ-Lee> Alright, cout and everyone else, that suggestion stopped the exception but it's not pulling from the top to output the help
<cout> yeah I don't know why that doesn't work
<cout> like I said I wrote my own help command: https://github.com/cout/u-2002/blob/master/plugins/help.rb
<cout> oh right
<cout> the default help doesn't register a help command
<cout> you just have help <plugin>
<AJ-Lee> Cout with that help command you wrote how do you define the help in the individual plugins?
<cout> set help:
<cout> same as normal
<AJ-Lee> Ah okay.
<cout> it just adds a "toplevel" help command
<AJ-Lee> Do you not have a commands list with that?
<cout> no
<cout> because all the commands are regexes
<cout> so I treat the plugin name as a "topic"
<cout> I guess I could iterate over all the regexes and "guess" what the command names are
<cout> but that's getting crazy
<AJ-Lee> Okay
<AJ-Lee> So once it returns the topics
<AJ-Lee> Can you get further help on each topic?
<cout> yes, that's there by defaut
<cout> default
<AJ-Lee> I see that in the plugin, however it's not working
space has joined #cinch
Cinchy_ has joined #cinch
Cinchy has quit [Remote host closed the connection]