This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

!say script

Old posts that have not been replied to for several years.
Locked
t
tango

!say script

Post by tango »

Does anyone have a script which can either message a channel or person depending on the variable used? For example !say #channel TEST would message #channel with TEST, and !say person TEST would private message "person" with the word test.

I wouldn't imagine this would be to hard. This script would only be able to be used from 1 channel, which is private, so regardless of flags would have access to the command.

Does anyone know how to do this?
User avatar
Rusher2K
Halfop
Posts: 88
Joined: Fri Apr 18, 2003 10:45 am
Location: Germany
Contact:

Post by Rusher2K »

Here:

Code: Select all

bind pub - !say say

proc say {nick host hand chan text} {
if {$chan!="#yourchan"} {return}
    set who [lindex $text 0]
    set msgtext [lrange $text 1 end]
putserv "privmsg $who :$msgtext"
}
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

why don't u use party line command then from the party line u can make the bot msg an channel that isn't mode +n or if the bot is on the channel.. also u will be able to send a msg from the partyline to any user you like.
XplaiN but think of me as stupid
Locked