User Control Panel
Advertisements

HELP US, HELP YOU!

Leave

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Commands
View unanswered posts
Author Message
mat007
Almost An Agent
Almost An Agent


Joined: 12 Jan 2004
Posts: 1375

Reputation: 15.8Reputation: 15.8
votes: 2

PostPosted: Sun Feb 27, 2005 3:09 pm    Post subject: Reply with quote

There seemed to be an error wene you called Leave which would crash your bot.

So i made a new leave sub (Put it in switchboard.pm Laughing)

Code:
<br />=head2 GoLeave<br /><br />Make the bot leave a convo optional pass a leave greet msg.<br /><br />$self->GoLeave("Greeting?");<br /><br />=cut<br /><br />sub GoLeave<br />{<br />   my $self = shift;<br />   my $bye = shift || 'Bye';<br /><br />   $self->sendMessage("$bye, I will now leave the conversation.");<br />   $self->{Socket}->print("OUT\*lazy*\n");<br />   $self->{Msn}->{Select}->remove($fn);<br />   delete $self->{Msn}->{Connections}->{$fn};<br />   undef $self;<br />}


It should help people.
Back to top
Dazzy
Agent
Agent


Joined: 09 Jan 2004
Posts: 1731

Reputation: 72.3

PostPosted: Sun Feb 27, 2005 4:19 pm    Post subject: Reply with quote

uhh so whats it for? template,language??
Back to top
darkmonkey
The Merovingian
The Merovingian


Joined: 18 Apr 2004
Posts: 2557
Location: London, England
Reputation: 39.3Reputation: 39.3Reputation: 39.3Reputation: 39.3
votes: 7

PostPosted: Sun Feb 27, 2005 4:27 pm    Post subject: Reply with quote

That's for MSN2.0, Perl, all templates. Surely you could work that out...
_________________
~ Josh
[ Need bot hosting on a dedicated server? PM me. ]
Back to top
Dazzy
Agent
Agent


Joined: 09 Jan 2004
Posts: 1731

Reputation: 72.3

PostPosted: Sun Feb 27, 2005 5:31 pm    Post subject: Reply with quote

:blink:


never seen all this been used before

Code:
=head2 GoLeave<br /><br />Make the bot leave a convo optional pass a leave greet msg.<br /><br />$self->GoLeave("Greeting?");<br /><br />=cut


Edit:
Was that bit about putting in the leave sub there before?! im sure it wasnt!
Back to top
mat007
Almost An Agent
Almost An Agent


Joined: 12 Jan 2004
Posts: 1375

Reputation: 15.8Reputation: 15.8
votes: 2

PostPosted: Sun Feb 27, 2005 5:42 pm    Post subject: Reply with quote

Its perl POD (Plain old doc)
Back to top
darkmonkey
The Merovingian
The Merovingian


Joined: 18 Apr 2004
Posts: 2557
Location: London, England
Reputation: 39.3Reputation: 39.3Reputation: 39.3Reputation: 39.3
votes: 7

PostPosted: Sun Feb 27, 2005 7:35 pm    Post subject: Reply with quote

...Which is mainly found in modules.
_________________
~ Josh
[ Need bot hosting on a dedicated server? PM me. ]
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Sun Feb 27, 2005 10:08 pm    Post subject: Reply with quote

If you're all really that stupid:

The use of POD tells you it's probably a module. And the example "$self->DoLeave" tells you it's a method (for a module).

Open up yer MSN 2.0 module, copy and paste the code in, save, and then call $self->DoLeave instead of $self->leave when you want to leave a convo.

Congratulations, I just lost 4 IQ points.

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
Dazzy
Agent
Agent


Joined: 09 Jan 2004
Posts: 1731

Reputation: 72.3

PostPosted: Mon Feb 28, 2005 3:43 pm    Post subject: Reply with quote

um ok i was only asking.... :unsure:
being perfect is too much work....
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Commands All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group