2013-12-09 19:05
dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.0.11
00:19
CM-Punk has joined #cinch
00:20
workweezle has left #cinch [#cinch]
00:36
[krisbulman] is now known as krisbulman
00:48
krisbulman is now known as krisbulman|afk
03:15
krisbulman|afk is now known as [krisbulman|afk]
03:17
[krisbulman|afk] is now known as krisbulman
04:15
postmodern has quit [Quit: Leaving]
06:42
krisbulman has quit [Ping timeout: 252 seconds]
06:46
krisbulman has joined #cinch
06:59
krisbulman is now known as [krisbulman]
07:09
cyrusdavid has quit [Ping timeout: 245 seconds]
07:30
Spami has joined #cinch
07:38
waxjar has quit [Ping timeout: 245 seconds]
07:39
cyrusdavid has joined #cinch
07:58
waxjar has joined #cinch
08:08
xeviox|afk is now known as xeviox
08:09
xeviox is now known as xeviox|afk
09:08
Spami has quit [Quit: This computer has gone to sleep]
10:31
kludge` has quit [Ping timeout: 252 seconds]
10:36
kludge` has joined #cinch
11:37
Xeago has joined #cinch
11:51
xeviox|afk is now known as xeviox
13:03
nOgAnOo has quit [Ping timeout: 252 seconds]
13:12
[krisbulman] is now known as krisbulman
13:24
krisbulman is now known as [krisbulman]
13:25
[krisbulman] is now known as krisbulman
14:09
CM-Punk has quit [Ping timeout: 265 seconds]
14:11
CM-Punk has joined #cinch
14:20
v0n has joined #cinch
14:22
<
Cinchy >
[gist] gist:92f323eec621e9a89c95 (at gist.github.com, Xeago on 2014-01-29 14:22)
14:22
<
Xeago >
what is goin on?
14:22
<
Xeago >
"SSL_read: decryption failed or bad record mac (OpenSSL::SSL::SSLError)"
14:22
<
Xeago >
there are 131 users in the channel
14:24
<
Xeago >
any other channel works
14:31
<
Xeago >
or any other information I need to provide?
14:35
<
Xeago >
this comes after receiving the channel's userlist
14:36
<
Xeago >
and happens without any plugins running
14:57
Xeago has quit [Remote host closed the connection]
15:28
Xeago has joined #cinch
15:28
tiaburn has joined #cinch
15:29
<
tiaburn >
I'd like to have some support on cinch bot... Can someone help me?
15:30
<
tiaburn >
How can I join channel on connection? Or send a message to channel via on :connect event?
15:32
<
catepillar >
in your configure block for the bot, add a .channels = ["#array","#of","#channels"]
15:32
<
catepillar >
sending a message on connect is a bit trickier, cause you want your bot to be in the channel first
15:33
<
catepillar >
i always did that by using the :join event
15:33
<
catepillar >
and seeing if the m.user.nick == bot.nick
15:33
<
catepillar >
there is probably a better way though
15:40
<
Xeago >
catepillar: would you know anything about my ssl error (about an hour ago)?
15:42
waxjar is now known as shadesaaaa
15:44
<
catepillar >
unfortunately not
15:44
<
catepillar >
i did take a look though, if that counts for anything
15:45
v0n has quit [Ping timeout: 264 seconds]
15:47
shadesaaaa is now known as waxjar
15:52
v0n has joined #cinch
16:00
<
tiaburn >
OK, thanks!
16:01
tiaburn has quit [Quit: leaving]
16:06
<
Xeago >
thanks catepillar!
17:22
v0n has quit [Ping timeout: 252 seconds]
17:38
v0n has joined #cinch
17:46
txdv has quit [Read error: Connection reset by peer]
17:47
txdv has joined #cinch
17:50
<
onewheelskyward >
Xeago I get that in my datamapper app when I gracefully restart unicorn.
17:51
<
onewheelskyward >
It occurs only once and then everything is fine. Does it happen to you on every join to that channel?
17:51
<
onewheelskyward >
Which version of openssl did you compile ruby against?
19:04
xeviox is now known as xeviox|afk
19:19
Xeago has quit [Remote host closed the connection]
19:36
postmodern has joined #cinch
19:43
iAdam1n has joined #cinch
19:44
<
iAdam1n >
Hey, how do I start a ruby written IRC bot?
19:44
<
iAdam1n >
It's using cinch
19:45
<
catepillar >
ruby filename.rb
19:46
<
iAdam1n >
hm, I did that, does it output any text or just go to a new prompt?
19:46
<
iAdam1n >
It is not showing up on the configured IRC network
19:46
<
catepillar >
it should start printing tons of things out
19:47
<
catepillar >
post up your file on pastebin somewhere
19:47
<
catepillar >
are you getting any output at all?
19:47
<
dominikh >
my bet's on a forgotten call to Bot#start
19:48
<
iAdam1n >
I get a new line with the prompt, nothing else
19:48
<
catepillar >
your server is wrong
19:48
<
catepillar >
irc.freenode.net i believe
19:49
<
dominikh >
that's not the main issue though. the new thread on line 148 is
19:49
<
dominikh >
which means that the main thread is free to terminate, thus terminating the ruby process
19:49
<
catepillar >
oh yea, need to wait for the thread to join
19:49
<
dominikh >
or just not have a thread in the first place
19:50
<
iAdam1n >
yeah I do have .net, forgot to change it in the gist
19:51
<
iAdam1n >
How long should it take to join with that code?
19:51
<
catepillar >
the thread should never join
19:52
<
iAdam1n >
so remove line 148 and 150?
19:54
<
catepillar >
that's one solution
19:55
<
iAdam1n >
thanks so much
19:56
<
catepillar >
i thought ruby waited on threads to finish executing before closing the main thread
19:56
iAdam1n has joined #cinch
19:56
<
catepillar >
but looking through some of my other code, i realized i always had join statements
19:56
<
iAdam1n >
I forgot one thing, this is on a VPS. How can I make it run but close Terminal which it runs in?
19:57
<
catepillar >
i would use screen before I close the terminal
19:57
<
catepillar >
that way I can monitor the output of cinch
19:59
<
dominikh >
I would use tmux because it's superior to screen. but of course for a real bot I'd use some form of supervision (runit, systemd, whatever it is you use)
19:59
<
iAdam1n >
I don't mind about monitoring it, just want it to run. How can I do that?
19:59
<
dominikh >
still screen/tmux, or nohup
20:00
<
iAdam1n >
So I have to keep something open with ssh to my server open? I want it to still run when I turn my Mac off, it's on a VPS
20:00
<
dominikh >
look up screen, tmux and nohup.
20:01
<
iAdam1n >
I know, but if I turn my mac off, surely the bot will quit, right?
20:01
<
dominikh >
you don't know, so look up what screen does.
20:02
<
dominikh >
GNU screen specifically.
20:03
<
iAdam1n >
so that way, I can turn my Mac off, but it will stay online if I run it on my VPS? I only have ssh access and do not want to keep ssh open all the time.
20:03
<
iAdam1n >
Also, can I message nickserv to identify the bot from the command line
20:15
<
iAdam1n >
dominikh: how would I use screen to keep it working? I have it, but cannot work out how to make it stay connected.
20:23
<
iAdam1n >
It's running and I have screen but not sure how to make it work
20:28
krisbulman is now known as [krisbulman]
20:31
iAdam1n has joined #cinch
20:31
<
iAdam1n >
I have got the bot working but can I message nickserv from the shell script?
21:29
<
onewheelskyward >
What kind of container can I run cinch in to allow automated capistrano restarts?
22:04
nOgAnOo has joined #cinch
23:33
CM-Punk has quit [Quit: You're a LOSER, and your dad probably beat you when you were a kid... which was probably two weeks ago]
23:54
v0n has quit [Ping timeout: 248 seconds]