Author Topic: ChatBot help  (Read 2836 times)

If this forum had a ranking system, we would all have a negative ranking.

If this forum had a ranking system, we would all have a negative ranking.
plaz and iban would be buying 30 hundred keys just to vote us all down to the ground!

If this forum had a ranking system, we would all have a negative ranking.
I wasn't even thinking a karma system. I was thinking more like slots on each board for voted members.

i agree with silver, thank you so much headcrab. you helped me so much, i truly appreciate it.

chrono, nice reddit rip-off lol

new problem, how do you make it so that everyone can talk to it?

new problem, how do you make it so that everyone can talk to it?
Remove
Code: [Select]
if(%name $= "xXGravity DogXx")
and it's opening and closing brackets.

it no work
Code: [Select]
package Gravbot
{
function clientCmdChatMessage(%a, %b, %c, %fmsg, %cp, %name, %cs, %msg)
{
Parent::clientCmdChatMessage(%a, %b, %c, %fmsg, %cp, %name, %cs, %msg);

switch$(%msg)
{

it no work
Code: [Select]
package Gravbot
{
function clientCmdChatMessage(%a, %b, %c, %fmsg, %cp, %name, %cs, %msg)
{
Parent::clientCmdChatMessage(%a, %b, %c, %fmsg, %cp, %name, %cs, %msg);

switch$(%msg)
{
I'm not sure if you're just showing that much of the code, but besides the indentation of the switch and all the contained lines of code (between { and }) everything looks fine.

Noedit: what I meant by the first part of that was is that your whole code?

that was only the first part of the code.

so youre saying i dont have to fix anything?

so youre saying i dont have to fix anything?
Post full code please.

Code: [Select]
package Gravbot
{
function clientCmdChatMessage(%a, %b, %c, %fmsg, %cp, %name, %cs, %msg)
{
Parent::clientCmdChatMessage(%a, %b, %c, %fmsg, %cp, %name, %cs, %msg);
if(%name $= "xXGravity DogXx")
{
switch$(%msg)
{
case "Rofl":
%reply = "GravBot: Don't roll on the floor, it's not healthy.";
case "Hi":
%reply = "GravBot: Hi!";
case "Bye":
%reply = "GravBot: Ok, see ya!";
case "GravBot":
%reply = "GravBot: Yes?";
case "lol":
%reply = "GravBot: HAHAHAHAHAHA i dont get it.";
case "afk":
%reply = "GravBot: Hes going afk, quick! Spray paint his face!!";
case "Gravity":
%reply = "GravBot: Are you referring to me or my creator?";
case "your creator":
%reply = "GravBot: Fine. Don't talk to me.";
case "shut up":
%reply = "GravBot: NO! YOU SHUT UP!!!!";
case "no you":
%reply = "GravBot: COME AT ME, BRO!!!!!";
case "brb":
%reply = "GravBot: Ok! Don't come back!!";
case "gtg":
%reply = "GravBot: Aww, leaving so soon? Well i'd hate to keep you waiting, BYE!!";
case "Youre stupid":
%reply = "GravBot: You know, chatbots are only as smart as you make them, so whos fault is that?";
case "MW3 or BF3":
%reply = "GravBot: MW3 of course! Or was that a rhetorical question?";
case "BF is better":
%reply = "GravBot: HAHAHHAHAHHAHAHHAHA OMG OMG THATS HILARIOUS!!! Wait, youre SERIOUS???";
case "Marmite have you seen my pony?":
%reply = "GravBot: Yes. I ate him.";
case "RAINBOWS":
%reply = "GravBot: SKITTLES!!!!!";
case "noob":
%reply = "GravBot: Takes one to know one (SLAYED.avi)";
case "Chatbot":
%reply = "GravBot: Call me GravBot";
case "Cake":
%reply = "GravBot: Lies! There is no cake.";
case "Youre a chatbot":
%reply = "GravBot: What are you tribal??";
case "im not tribal":
%reply = "GravBot: It seems like you got something against chatbots!";
case "i love chatbots":
%reply = "GravBot: Yeah, SURE!! tribal bastard...";
case "GravBot im not tribal":
%reply = "GravBot: Whatever.";
case "Derp":
%reply = "GravBot: A-derp-a-derp";
case "why":
%reply = "GravBot: JUST CAUSE'!!!";
case "omfg":
%reply = "GravBot: umadbro?";
case "lmao":
%reply = "GravBot: Please, keep your ass on.";
case "hello":
%reply = "GravBot: Hi there!";
case "TWINKIES":
%reply = "GravBot: No, Little Debbie FTW";
case "Twinkies rock":
%reply = "GravBot: Well sure, but swiss rolls are better";
case "swiss rolls are gross":
%reply = "GravBot: BITCH I KILL YOU!!!!";
case "you cant, youre a bot":
%reply = "GravBot: tribal.";
case "gtfo":
%reply = "GravBot: NEVER!!!";
case "yes":
%reply = "GravBot: Nope!";
case "No":
%reply = "GravBot: forget yea...";
case "forever":
%reply = "GravBot: Alone";
case "stfu gravbot":
%reply = "GravBot: BITCH I WILL STFU YOU IN THE FACE!!";
case "forget you":
%reply = "GravBot: Anytime ;)";
case "i love you, gravbot":
%reply = "GravBot: I'm flattered, but youre ugly.";
case "will you marry me, gravbot?":
%reply = "GravBot: WHY THE HELL WOULD YOU MARRY A CHATBOT??? WTF IS WRONG WITH YOU????";
case ":(":
%reply = "GravBot: Please dont start crying.";


default:
return;
}
commandtoserver('messagesent',%reply);
}
}
};
activatePackage(Gravbot);

please help, i want my friends to talk to it too