mIRC Home    About    Download    Register    News    Help

Print Thread
#184848 02/09/07 03:17 AM
Joined: Jul 2007
Posts: 42
Z
zad0909 Offline OP
Ameglian cow
OP Offline
Ameglian cow
Z
Joined: Jul 2007
Posts: 42
ANyone know of a messaging system thats text based?

So like someone could type !msg <nick> <meesage>
The bot would then do /msg <above nick> <above message> so it would message that person. If they are offline it would give a message saying so.
I know this is pointless since it would be just as easy for you to do it yourself but I would still like to see how its done.

Also is there a smilar method for sending memos to people?

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Here's the basic idea including "error" messages.

Code:
on *:text:!msg *:#: {
  ; Check to see if the nick is in the channel.  If not, display a message and halt (return).
  if ($2 !ison $chan) { msg $nick That person isn't in the channel. | return }
  ; Check to see if there was a message included.  If not, display and error message and halt (return).
  if (!$3) { msg $nick Please include a message to send to $2 $+ . | return }
  ; Send the message ($3-) to the nick ($2).
  msg $2 $3-
}


Invision Support
#Invision on irc.irchighway.net
Joined: Jul 2007
Posts: 42
Z
zad0909 Offline OP
Ameglian cow
OP Offline
Ameglian cow
Z
Joined: Jul 2007
Posts: 42
Thanks man laugh


Link Copied to Clipboard