What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Help: How can I make my bot send a message?

Help: How can I make my bot send a message?
Author: Message:
RogerX
New Member
*

I'm cool. :P

Posts: 2
32 / Male / –
Joined: Jul 2006
O.P. Huh?  Help: How can I make my bot send a message?
code:
    if (Bot){
    if (sMessage == "!say"){
         pChatWnd.SendMessage("RogerBot: ");
        return "";
    }

Any ideas on how to make it send the message like this: "RogerBot: *Whatever I typed after the !say command*"?
07-30-2006 03:15 PM
Profile E-Mail PM Web Find Quote Report
hmaster
Senior Member
****

Avatar

Posts: 716
Reputation: 24
33 / Male / Flag
Joined: Nov 2004
RE: Help: How can I make my bot send a message?
code:
if(sMessage.substr(0, 4) == '!say'){
Message = sMessage.substr(4);
botMessage = "RogerBot:" + Message);
return botMessage;
}
I think that's what you're trying to do.
[Image: sig.png]
07-30-2006 04:20 PM
Profile PM Web Find Quote Report
RogerX
New Member
*

I'm cool. :P

Posts: 2
32 / Male / –
Joined: Jul 2006
O.P. RE: Help: How can I make my bot send a message?
Thanks, it worked out nicely.
07-30-2006 05:06 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On