I've been trying to write a script that lets the bot send a message to the channel after sending a query to the bot:
/msg Bot User
<Bot> User: Ha Ha!
I tried to adapt some scripts that I found, but as I'm not familiar with coding it's a bit hard (and I already tried serveral variants of this one):
Code: Select all
# /msg <bot> <nick>
bind msg * laugh msg:laugh
proc msg:laugh {nick host hand text} {
putserv "PRIVMSG $chan :$nick: Ha Ha!"
}
# procname <nick> <user@host> <handle> <text>
# Description: used for /msg commands. The first word of the user's
# msg is the command, and everything else becomes the text argument.
Thanks for taking a look,
Schubi