<
rickmasta>
How exactly would I do threaded messages?
<
rickmasta>
such a confirmation.
<
waxjar>
what do you mean by threaded messages?
<
rickmasta>
waxjar: Something like this
<
rickmasta>
!deleteblahblah
<
rickmasta>
and the bot responds "Are you sure you want to delete blah blah? Type yes to proceed"
<
waxjar>
rickmasta, avoid those kind of messages altogether, imo. they're super annoying :P
<
rickmasta>
Well it's actually for something else
<
rickmasta>
Like when a user sets let's say a key, they'll type !key and the key will be saved to their nick
<
waxjar>
i guess you could keep a list of users that need to confirm something in an instance variable
<
waxjar>
match on 'yes' and check if the user is in the list, if so, proceed?
<
rickmasta>
Alright, another question.
<
rickmasta>
How do I make the bot say something without having to be triggered.
<
rickmasta>
If I wanted it to say something byself, without needing to say a command to it.
<
rickmasta>
K, I'm getting it to send the message
<
rickmasta>
but it's not sending it to anywhere.
<
waxjar>
there are User and Channel helper methods, you can use those to create a target on which you can call #send or #msg or w/e
<
rickmasta>
waxjar, mind expanding on that?
<
rickmasta>
In the examples The just do something like Channel("#cinch-bots").send "I got a random number: #{number}" wich doesn't work for me
<
rickmasta>
Well, not that exactly
<
rickmasta>
but like that.
postmodern has joined #cinch
<
rickmasta>
Oh no, I've got it.
<
rickmasta>
Nice Thanks.
<
rickmasta>
waxjar: Do you think a cinch bot is deployable on heroku?
<
waxjar>
yep, i had one running for a while
<
waxjar>
it'd sometimes timeout or something though :(
<
rickmasta>
Well, I have a cinch bot on my sinatra app
<
rickmasta>
Because of inactivity?
beeneto has joined #cinch
<
waxjar>
i'm not sure, it did start right up again though. but it was still annoying
<
waxjar>
there's a gist somewhere btw that explains how to do it
beeneto has left #cinch [#cinch]
<
rickmasta>
YEah, I found it waxjar
<
rickmasta>
but I'm still new to ruby, so don't entirely understand it.
aytch_ is now known as aytch
lagweezle has joined #cinch
postmodern has quit [Quit: Leaving]
txdv has joined #cinch
yield_ has joined #cinch
kith has quit [Read error: Connection reset by peer]
<
yield_>
i tried to run some exmaples
<
yield_>
and it didn't worked for me
<
yield_>
plugins i mean
<
dominikh>
be aware that the default prefix is !
<
yield_>
omg i will try woth !
<
yield_>
still nothing
<
dominikh>
so what plugin are you trying and how are you trying to use it.
kith has joined #cinch
<
yield_>
on same channel with bot i write hello
<
yield_>
and nothing
cinch_ has joined #cinch
<
cinch_>
Hello, dominikh
cinch_ has quit [Remote host closed the connection]
v0n has joined #cinch
<
yield_>
but when i run without plugins
<
yield_>
with on :message, "hello" do |m|
<
dominikh>
the default prefix for plugins is !
<
yield_>
still nothing
<
dominikh>
show me.
<
yield_>
it only works with on :message
<
yield_>
#bot-test2
rickmasta has quit [Ping timeout: 252 seconds]
v0n has quit [Ping timeout: 252 seconds]
bhaak has quit [Ping timeout: 276 seconds]
bhaak has joined #cinch
V8Energy has joined #cinch