Hello everyone.
I'm just start write a small script for my self. I have some questions.
1. About on *:TEXT event. How can I get that content of message. There is $nick, $chan. Is there something like $mess or $content that return the content? I already try $1, $2,... but how can I know how many of that? Besides that, $1, $2,... also come with formated. Can I get content only?
2. I want to know if someone trying to send private messages to my bot, bot will forward messages to me. How can I catch the private message event? Can I send that message to other nick?
3. How can I record the content of chanel in .txt file? In some special case like if my nick exists on content, it will record into .txt file.
Thank you for your time!
----------------------------------
EDIT: Thank you for your answer Nillen. I have 1 more problem.
I often use .timer 1 <second> to delay my reply. But during delay time, something might happend, thus the message on queue will have no meaning. How can I handle this?
"stop!" keyword:
me: !say 20 Hello world!
(...)after 10s
me: stop!
(...)Nothing happend after that
without keyword:
me: !say 20 Hello world!
(...)after 20s
Bot: Hello world!