is there any possibility to send some text as a message to the IRC channel which comes directly from a form? I am talking about manually and casually inserted text and not about certain text for certain events what most of the bots use...
Thank you very much,
Florian
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
it's easy, make an HTML form, send the form to an smartirc script, which connects to IRC, send the text and disconnects from IRC, no events etc needed...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm trying to do something like that but I can't figure out what arguments should I use with the "$irc->message()" method to send the messages to the channel.
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi there,
is there any possibility to send some text as a message to the IRC channel which comes directly from a form? I am talking about manually and casually inserted text and not about certain text for certain events what most of the bots use...
Thank you very much,
Florian
it's easy, make an HTML form, send the form to an smartirc script, which connects to IRC, send the text and disconnects from IRC, no events etc needed...
I'm trying to do something like that but I can't figure out what arguments should I use with the "$irc->message()" method to send the messages to the channel.
Thanks.
Normally, you can use a $_POST['text'] variable (superglobal) or $HTTP_POST_VARS['text'].
Just:
$message = $_POST['text'];
$channel = $_POST['channel'];
$irc->message(SMARTIRC_TYPE_CHANNEL, $channel, $message);
and how to disconnect after this?