2015-03-30 18:24
dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.2.5
00:05
britneywright has joined #cinch
01:55
_djbkd has quit [Quit: My people need me...]
02:08
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:48
Azure has quit [Read error: Connection reset by peer]
06:50
Azure has joined #cinch
08:21
postmodern has quit [Quit: Leaving]
10:56
sarkyniin has joined #cinch
12:44
britneywright has joined #cinch
13:44
apt-get_ has joined #cinch
13:48
sarkyniin has quit [Ping timeout: 264 seconds]
14:10
eebs has joined #cinch
14:32
v0n has quit [Ping timeout: 240 seconds]
14:34
v0n has joined #cinch
15:43
Lirion has quit [Ping timeout: 256 seconds]
15:46
Lirion has joined #cinch
16:07
rikai has quit [Read error: Connection reset by peer]
16:48
rikai has joined #cinch
16:53
rikai has quit [Ping timeout: 256 seconds]
16:55
ColdBlooder has joined #cinch
17:09
djbkd has joined #cinch
17:24
rikai has joined #cinch
17:48
<
ColdBlooder >
Is there a way to make the bot choose a random person in the room?
17:52
ColdBlooder has joined #cinch
17:59
<
ColdBlooder >
How do i randomly select one. Thats my main issue...
18:00
<
eebs >
ColdBlooder: You could call .to_a.sample on the users hash
18:03
<
ColdBlooder >
Cool i'll give it a try
18:39
<
ColdBlooder >
How do i get the username out of this? [#<User nick="ColdBlooder">, ["o"]]
18:39
<
ColdBlooder >
Split on the quotation mark and cut the leftover?
18:39
dRbiG has joined #cinch
18:40
<
dRbiG >
hello. quick question: is it possible to use a prefix only for channel messages?
18:45
<
leftylink >
and use xmatch instead of match
18:46
<
leftylink >
kinda bad but the best I could do
18:46
<
dRbiG >
aye, thanks for sharing your approach
18:54
<
ColdBlooder >
So using "randomuser = Channel($channel).users.to_a.sample" gives me a randomly chosen username but in an array. How do i call User.nick after that? I don't know why i don't understand that right now...
18:57
<
eebs >
I may have misspoken before
18:58
<
eebs >
I think you want to call #users.keys.sample.nick
18:58
<
eebs >
with the appropriate error handling
19:02
<
ColdBlooder >
Ahh now it works
19:02
<
ColdBlooder >
And now i need to get to work... Bye!
19:03
<
eebs >
ColdBlooder: cheers, glad it works
19:04
<
leftylink >
ah, right, becuase Hash#to_a returns an array of [key, value] pairs. which explains the above behavior
19:06
<
eebs >
Yeah. I also misread it, and thought #users returned a hash where the values were an array of User => [modes].
19:06
<
eebs >
so I may have caused some confusion :P
20:47
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:18
eebs has quit [Quit: Leaving.]
21:29
djbkd has quit [Remote host closed the connection]
21:32
Azure has quit [Excess Flood]
21:35
Azure has joined #cinch
22:11
djbkd has joined #cinch
22:17
djbkd has quit [Ping timeout: 276 seconds]
22:40
djbkd has joined #cinch
23:28
apt-get_ has quit [Remote host closed the connection]