Hi, this is probably a dumb question, but Ive tried everything I could and I cant find my error.
Im using the juggernaut bot, and I want it to give a simple reply to normal greetings. I created a seperate folder, and seperate .CML files for different things I want it to say. I added one like this:
Code:
<category><br /> <pattern>HEY|WHATS UP|HI|HELLO|SUP</pattern><br /> <template>Hello, and welcome. Please type <b>HELP</b> to get started.</template><br /></category><br />
I tried using it, but it would only respond to "sup" and not to any of the others, so I tried breaking it down to see if that helped.
Code:
<br /><category><br /> <pattern>SUP</pattern><br /> <template>Hello, and welcome. Please type <b>HELP</b> to get started.</template><br /></category><br /><br /><category><br /> <pattern>HEY</pattern><br /> <template>Hello, and welcome. Please type <b>HELP</b> to get started.</template><br /></category><br /><br /><category><br /> <pattern>HI</pattern><br /> <template>Hello, and welcome. Please type <b>HELP</b> to get started.</template><br /></category><br /><br /><category><br /> <pattern>YO</pattern><br /> <template>Hello, and welcome. Please type <b>HELP</b> to get started.</template><br /></category>
I also tried the other method:
Code:
<category><br /> Input: WHATS UP<br /> Reply: Hello, and welcome. Please type <b>HELP</b> to get started.<br /></category><br />
I still havnt got it to respond correctly to a simple "hi", but Ive got about 30 other commands it will respond perfectly for.
Ive also read this topic, other related topics, and the help file.. I still cant figure out what Ive done wrong.
Since "hi" is such a short word and can easily be included in bigger words (i.e. high, thigh, white, while, etc.), and because most of the brains included with Juggernaut use the "contains" regexp to find replies... Juggernaut converts "hi" to "hello"
So the reason that it's hard to make a reply for just "hi" is because, by the time the bot gets to finding a reply, the user's message says "hello" instead of "hi" - it's just a little thing I put in there to stop bigger problems later (for example, the ones I listed above). _________________ Current Site (2008) http://www.cuvou.com/
Okay, Ive fixed the problem, now when they IM the bot, it will give them a more directive error, so they have somewhere to start off if they simply say 'hi'.
Thanks for answering
I also had another question that came up the last hour or so..
Im having trouble receiving responses from the bot on AIM version 5.9. The CMD window shows the outgoing IM, and the IM window shows that the bot is typing, but nothing goes through. I can talk to it normally on earlier verson of aim, or other aim programs like gAIM. Other people who I had test it were having the same problem receiving messages.
I tried on another net-oscar bot you made, and it did the same thing. I uninstalled and reinstalled net oscar 1.7 also, but it didnt work.
Im not sure exactly whats happening, if you have any ideas or suggestions it would be appreciated very much
Okay, Ive fixed the problem, now when they IM the bot, it will give them a more directive error, so they have somewhere to start off if they simply say 'hi'.
Thanks for answering
I also had another question that came up the last hour or so..
Im having trouble receiving responses from the bot on AIM version 5.9. The CMD window shows the outgoing IM, and the IM window shows that the bot is typing, but nothing goes through. I can talk to it normally on earlier verson of aim, or other aim programs like gAIM. Other people who I had test it were having the same problem receiving messages.
I tried on another net-oscar bot you made, and it did the same thing. I uninstalled and reinstalled net oscar 1.7 also, but it didnt work.
Im not sure exactly whats happening, if you have any ideas or suggestions it would be appreciated very much [right][snapback]47076[/snapback][/right]
According to some people, I must not be a good Net::OSCAR bot coder because my bots tended to give people problems. Try using somebody else's Net::OSCAR bot code (if you can find any) and see if the problem still comes up. If so, then the problem might just be with that version of AIM. Try researching stuff on AIM 5.9 to see if anybody has documented such problems elsewhere. _________________ Current Site (2008) http://www.cuvou.com/
Fixed the problem, there was some error in the net-OSCAR that I had installed, so after re-installing perl and re-installing net-OSCAR, it works fine.
I have another question, which should be a lot simpler.. How do you change the response when the bot doesnt know how to respond?
I tried editing the Juggernaut_get file, which is where I found the "cannot reply to that" error, then changed the words, but the bot still gives the same error after restarting.
Beyond that, I dont know what to do.
Thanks
EDIT; also i was using the !route command, and when i would send
Quote:
!route screenname -> message
it would reply..
Quote:
I have sent the message to screenname -> message.
instead of sending the message to 'screenname', it would send " Message from : " to the whoever, if 'screenname -> message" were an actual person.
EDIT; also i was using the !route command, and when i would send
Quote:
!route screenname -> message
it would reply..
Quote:
I have sent the message to screenname -> message.
instead of sending the message to 'screenname', it would send " Message from : " to the whoever, if 'screenname -> message" were an actual person. [right][snapback]47115[/snapback][/right]
That might've just been me losing my train of thought halfway through the command. Probably the correct usage is "!route screenname: message", if not you can always just look at the code and see where it split's it at.
And with the Juggernaut brain, you can set up your own default reply by making a response to just "*"
And actually, in the default Juggernaut reply set (replies/cml/cody), there's a "star.cml" that was made just for this purpose. It reads:
Code:
<cml version="1.0"><br /><br /><category><br />Input: *<br />Reply: This is an interesting topic.|Tell me more about that.|Go on...|lol|Interesting.|What do you do in your free time?|Is this what you do in your free time?|This is a very interesting subject.|Astounding.|Look into my eyes and tell me if you see somebody that cares.<br /></category><br /><br /></cml>
yeh i dled juggs to the desktop (cos thats generally where all dled files from internet browsers go on my file) and when i try extracting it, it says something about it not being a "valid archive" and when i look in it, theres no folders or anything, its just empty :huh: i dont get it so coulda ya please help me get it workin right? cheers
It might be some communication error between your computer and this site (I sometimes get that kind of problem with FTP servers).
Try downloading it from here: http://www.aichaos.com/?display=download&category=1 I think that's the right URL. If not, just click "Downloads" on the nav bar and click "AiChaos Bot Programs" or something like that, I think it's the first category (the school's network blocked that site so I can't really go check ). _________________ Current Site (2008) http://www.cuvou.com/