mIRC Homepage
Posted By: zad0909 TExt based messaging system - 02/09/07 03:17 AM
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?
Posted By: Riamus2 Re: TExt based messaging system - 02/09/07 05:05 AM
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-
}
Posted By: zad0909 Re: TExt based messaging system - 03/09/07 01:14 AM
Thanks man laugh
© mIRC Discussion Forums