Author Topic: Client-Sided Calculator Chatbot  (Read 1062 times)

i need a Client-Sided Calculator Chatbot
so when i say "-calc [math]"
bot says [math] = [answer]
is that possible?

Thanks

Could you please keep all your chat-bot related questions in your original thread please? There's no need to make multiple topics, really.

You posted no code for us to help with, only the question "is that possible?"

So; to answer your question: yes.

The easy way is
-removed because you aren't ready for it and your chatbot isn't secure-
(Assuming your chatbot is secure, do not use otherwise)
« Last Edit: January 02, 2013, 01:09:35 PM by Zeblote »

You posted no code for us to help with, only the question "is that possible?"

So; to answer your question: yes.
      else if(getwords(%msg, 0, 1) $= "Chatbot do" && getWord(%msg, 3) $= "+" && getWordCount(%msg) == 5)
      {
         %a = getword(%msg,2);
         %b = getword(%msg,4);
         %c = %a + %b;
         commandtoserver('messageSent',"[Chatbot]: " @ %a @ " + " @ %b @ " = " @ %c);
      }

thats what i have but i want to make it "-calc [question]"
not "chatbot do [question]"
you know what i mean?

This guy seems to be learning nothing and people keep giving him copy+paste code.

Where it says "Chatbot do" inside of the first line of your code, read what the if statement is saying. It is saying if the first two words are "Chatbot do" do this stuff. So it's common sense, just change "Chatbot do" to "Chatbot -calc"

What you'd need to do is package the NMH_Type::Send function.