|
| Author |
Message |
Porto Senior Member

Joined: 07 Jan 2004 Posts: 152
   
|
Posted: Wed Jan 21, 2004 9:30 pm Post subject: |
|
|
Hi i changed a popup command for andromeda users you can now let a popup appear without the "had just sign in."  |
|
| Back to top |
|
 |
Dazzy Agent

Joined: 09 Jan 2004 Posts: 1731
 
|
Posted: Wed Jan 21, 2004 9:55 pm Post subject: |
|
|
sorry to say this but that was ever so slightly wrong, it might work for other people but here the one that worked for me, well done on that tho. but why do you have to put in the bots name, its not as if it says name says: any way here the new code for me,only slight difference
| Code: | | use URI::Escape;<br /><br />sub popup<br />{<br /> my ($bot, $self, $user, $msg) = @_;<br /> if($msg eq '') <br /> {<br /> return {Message => 'Popup a message like when someone signs in. Example !popup Reboot in 30 seconds. <=> normal name',<br /> Color => "660000"};<br /> } else {<br /> my ($popname,$oldname) = split (/\s*\<\=\>\s*/, $msg);<br /><br /> $self->set_name("$popname<br /><br /><br /><br /><br /><br /><br /><br /><br /><br />");<br /> $self->set_status("HDN");<br /> $self->set_status('NLN');<br /> $self->set_name("put name here");<br /><br /> return "Popped up '$popname'";<br /> }<br /> return "";<br />}<br /><br />{<br /> Description => "Popup a message to announce something",<br /> Category => "Mod Utilities",<br /> Usage => "popup alert<=>oldname",<br />};<br /> |
|
|
| Back to top |
|
 |
Porto Senior Member

Joined: 07 Jan 2004 Posts: 152
   
|
Posted: Wed Jan 21, 2004 10:02 pm Post subject: |
|
|
i have your bot in my list and is saw your bot without has just sign in :huh:
SO what did you change on that command code??? i only see new lines so what i use other characters
it doesnt matter it matters that it WORKS  |
|
| Back to top |
|
 |
eric256 The Keymaker

Joined: 03 May 2006 Posts: 2292 Location: Colorado
     
|
Posted: Wed Jan 21, 2004 10:21 pm Post subject: |
|
|
dazzy why not mention what was wrong?? _________________ Eric256
Proud previous owner and current admin of Bot-depot.com |
|
| Back to top |
|
 |
Dazzy Agent

Joined: 09 Jan 2004 Posts: 1731
 
|
Posted: Wed Jan 21, 2004 10:35 pm Post subject: |
|
|
| sorry it just did'nt work for me, was coming up as not a command so i think i changed the sub name |
|
| Back to top |
|
 |
Porto Senior Member

Joined: 07 Jan 2004 Posts: 152
   
|
Posted: Thu Jan 22, 2004 3:24 pm Post subject: |
|
|
| edited by eric: Removed Status change command. ARG. Please post these in your own topic porto. Why tack that on here? No one will ever find it here and it just pollutes your original post with another command. |
|
| Back to top |
|
 |
|