dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.2.3
postmodern has quit [Quit: Leaving]
britneywright has joined #cinch
Dunke has quit [Remote host closed the connection]
usandfriends has joined #cinch
<usandfriends> Hello, I tried `m.user.away` but I'm getting a NoMethodError for #<User nick={{nick}}>
djbkd has quit [Remote host closed the connection]
<dominikh> please show the exact, uncensored stacktrace, as well as the actual code
djbkd has joined #cinch
djbkd has quit [Quit: My people need me...]
postmodern has joined #cinch
<catepillar> usandfriends: you can't change the bot prefix, but you can change plugins... it's a bit hacky, but you can set a prefix per plugin and reload them one by one
<usandfriends> catepillar: I'm not using plugins unfortunately, but that's cool to think about
<usandfriends> dominikh: #<NoMethodError: undefined method `away' for #<User nick="usandfriends">>
<usandfriends> dominikh: It's an eval bot
<dominikh> that's not a stacktrace.
<usandfriends> dominikh: I don't have a stack trace
<dominikh> then get one.
<usandfriends> I can't
<dominikh> well then there's nothing for me to do here
<catepillar> you should also use plugins
<catepillar> much easier to manage functionality with plugins
<usandfriends> dominikh: It's running in a thread and it's not giving me a stack trace. :(
<usandfriends> [2015/02/09 18:03:05.815] !! [New thread] For #<Cinch::Handler @event=:message pattern=#<Cinch::Pattern:0x2730f60 @prefix=nil, @pattern=/^\.(.*)?/, @suffix=nil>>: #<Thread:0x271c2a8> -- 1 in total. ,,,,, [2015/02/09 18:03:05.821] !! [Thread done] For #<Cinch::Handler @event=:message pattern=#<Cinch::Pattern:0x2730f60 @prefix=nil, @pattern=/^\.(.*)?/, @suffix=nil>>: #<Thread:0x271c2a8> -- 0 remaining.
<usandfriends> that's all that's outputted
<dominikh> never mind, I found the issue.
<usandfriends> :D
<usandfriends> catepillar: Is it possible to create plugins through the bot. Like if I send '.new_plugin plugin_name lamba { |args| ... }' to the bot?
<usandfriends> Or would I have the shut it down, manually write the plugin, and start it back up?
<catepillar> you can load dynamically load and unload plugins
<catepillar> i think that's what you are asking
<catepillar> dominikh has a gist somewhere doing exactly that
<catepillar> what i generally do is make changes to the ruby file that is the plugin, then reload it
<catepillar> but you could write a new plugin and load that
<usandfriends> Interesing
<usandfriends> interesting*
<catepillar> the link i gave you actually uses the ruby `load` method to reparse your ruby files
<usandfriends> Yeah.. Currently I just have a hash of lambdas and the main :channel event just checks if the key exists and executes the lambda with the string after the prefix
<usandfriends> I can "bind" new lambdas by running `.bind name lambda { |args| ... }`, which eval()'s the lambda and stores it in the hash
<usandfriends> I don't have access to my server while I am at school (port 22), so this is the way around it
<usandfriends> I don't think the dynamic plugins would work for my case since I don't have the ability to upload the plugin file
<usandfriends> But it would make my code 10x cleaner
dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.2.4
<dominikh> update to 2.2.4 if you want User#away to work
<usandfriends> dominikh: you are amazing
<usandfriends> But thanks a lot for the gist catepillar, I'll keep it and maybe find some way to bypass the block
<catepillar> ah, i remember the shitty hacks i ran around school port blocking
<dominikh> school port blocking is so ridiculously easy to get around :P
<catepillar> pretty sure I had ssh run over HTTP with some sort of hacked system that if you preformed a "GET" it displayed a blank web page
<catepillar> ssh server run over port 80, with a web page if a GET was called
<catepillar> stupid
<catepillar> but it worked
<usandfriends> Is this channel logged?
<catepillar> yea
<usandfriends> Thanks
<catepillar> it updates as well
<catepillar> kinda funny, i posted that link and realized it was already up on the webpage
<usandfriends> dominikh: Working :D
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
postmodern has quit [Quit: Leaving]
djbkd has joined #cinch
postmodern has joined #cinch
frog|OFF is now known as green-big-frog
green-big-frog is now known as frog|OFF
usandfriends has quit [Remote host closed the connection]
usandfriends has joined #cinch
usandfri_ has joined #cinch
usandfriends has quit [Ping timeout: 245 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #cinch
Lirion has quit [Quit: polished my ruby-s]
usandfri_ has left #cinch ["Client Quit"]
Lirion has joined #cinch
djbkd has quit [Remote host closed the connection]
djbkd has joined #cinch
djbkd has quit [Ping timeout: 256 seconds]
djbkd has joined #cinch
djbkd has quit [Ping timeout: 245 seconds]
postmodern has quit [Quit: Leaving]
britneywright has joined #cinch
djbkd has joined #cinch
djbkd has quit [Ping timeout: 240 seconds]
Dunke has joined #cinch
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
britneywright has joined #cinch
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has joined #cinch
djbkd has quit [Ping timeout: 245 seconds]
sarkyniin has joined #cinch
djbkd has joined #cinch
postmodern has joined #cinch
sarkyniin has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #cinch
djbkd has quit [Remote host closed the connection]
djbkd has joined #cinch
irsol has quit [Ping timeout: 255 seconds]
kith has quit [Ping timeout: 264 seconds]
irsol has joined #cinch
irsol has quit [Ping timeout: 250 seconds]
irsol has joined #cinch