|
| Author |
Message |
Vorx Senior Member

Joined: 21 Dec 2003 Posts: 152
   
|
Posted: Mon Dec 29, 2003 12:02 am Post subject: |
|
|
Hi, this is going to be quite hard to explain so forgive me if I make a mistake.
Basically, i'm using the Wiredbots template and it's set to automatically reply to a message using the magicalcheese database.
What i'd like help with is to make the bot silent, a bit like Scott's HelplessBot so it only responds to commands because when there's more than 1 person in a conversation with the bot it gets annoying because it says something everytime someone says something.
I've looked through the on_im, commands.pl and log_im and I have # a few lines and I can make it stop saying words but it replies with a blank line like so:
| Code: | | <br />I say:<br />blah blah<br />Bot says:<br /><br /> |
You see what I mean? It just outputs a blank reply to the screen and I want it to ignore all messages unless they start with the command prefix :
Anyway, I appreciate any help and just say if you need any more information.
Thanks Nick |
|
| Back to top |
|
 |
Myzterio Not Yet a God

Joined: 13 Dec 2003 Posts: 429
    
|
Posted: Mon Dec 29, 2003 3:33 am Post subject: |
|
|
Add Replies To It.. Just Open up the Main.cfg With Crimson Editor or Notepad (id pefer Crimson editor) Then Just Add Replies : Here's An Example : cheers|thankyou][no problem|not a problem|don't mention it|Lols No problem =)
Also To Locate Your Main.cfg, Just Goto *lazy* Bin>Responces>010 main.cfg! I Hope that helps you  |
|
| Back to top |
|
 |
Keenie Almost An Agent

Joined: 31 Oct 2003 Posts: 1071
 
|
Posted: Mon Dec 29, 2003 4:38 am Post subject: |
|
|
some where in on_im (near the bottom) will say something like $self->sendmsg($reply); change it to something like $self->sendmsg($reply) unless ($reply eq ""); |
|
| Back to top |
|
 |
Myzterio Not Yet a God

Joined: 13 Dec 2003 Posts: 429
    
|
Posted: Mon Dec 29, 2003 6:27 am Post subject: |
|
|
| Sorry, I Helped *lazy* wrong then Vorx |
|
| Back to top |
|
 |
Vorx Senior Member

Joined: 21 Dec 2003 Posts: 152
   
|
Posted: Mon Dec 29, 2003 11:23 am Post subject: |
|
|
Hi,
Thanks Keenie, that works fine.
And thanks Myzterio, even if you did post the wrong answer  |
|
| Back to top |
|
 |
|