User Control Panel
Advertisements

HELP US, HELP YOU!

!popup help

 
Post new topic   Reply to topic    Bot Depot Forum Index -> General Chat & Discussion
View unanswered posts
Author Message
And1 Hot Sauce
Newbie
Newbie


Joined: 24 Jan 2004
Posts: 39

Reputation: 28.6Reputation: 28.6Reputation: 28.6

PostPosted: Sun Jan 25, 2004 2:39 am    Post subject: Reply with quote

How do you make a "popup" say Admin alert:

if you just right !popup hello it would say

Admin alet: hello

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("Chrome Bot Type !menu to see Commands, Still Testing (beta mod) Auto Learning Added More Commands Comming");<br /><br />return "Popped up '$popname'";<br />}<br />return "";<br />}<br /><br />{<br />Description => "Popup a message to announce something",<br />Category => "(ip)Admin Commands(ip)",<br />Usage => "popup alert<=>oldname",<br />};


What do i writte were?
Back to top
Nate
God Like
God Like


Joined: 12 Nov 2003
Posts: 553

Reputation: 41.3Reputation: 41.3Reputation: 41.3Reputation: 41.3

PostPosted: Sun Jan 25, 2004 2:17 pm    Post subject: Reply with quote

Code:
$self->set_name("$popname<br /><br /><br /><br /><br /><br /><br /><br /><br /><br />");<br />


What's with all the blank space?

Code:
$self->set_name ($popname);
Back to top
night
Not Yet a God
Not Yet a God


Joined: 06 Jan 2004
Posts: 498

Reputation: 38.4Reputation: 38.4Reputation: 38.4Reputation: 38.4

PostPosted: Sun Jan 25, 2004 2:18 pm    Post subject: Reply with quote

EDIT: porto's posted it, so *lazy* removed *lazy* code
Back to top
Porto
Senior Member
Senior Member


Joined: 07 Jan 2004
Posts: 152

Reputation: 31.4Reputation: 31.4Reputation: 31.4

PostPosted: Sun Jan 25, 2004 2:18 pm    Post subject: Reply with quote

Code:
use URI::Escape;<br /><br />sub popup {<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("Admin Alert: $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("your bot nickname 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
night
Not Yet a God
Not Yet a God


Joined: 06 Jan 2004
Posts: 498

Reputation: 38.4Reputation: 38.4Reputation: 38.4Reputation: 38.4

PostPosted: Sun Jan 25, 2004 2:19 pm    Post subject: Reply with quote

nice code porto lol
Back to top
Porto
Senior Member
Senior Member


Joined: 07 Jan 2004
Posts: 152

Reputation: 31.4Reputation: 31.4Reputation: 31.4

PostPosted: Sun Jan 25, 2004 2:20 pm    Post subject: Reply with quote

lol me 2 Very HappyVery HappyVery Happy
Back to top
Dazzy
Agent
Agent


Joined: 09 Jan 2004
Posts: 1731

Reputation: 72.3

PostPosted: Sun Jan 25, 2004 2:38 pm    Post subject: Reply with quote

*lazy* but then how do *lazy* make it go mod alert for a mod?
Back to top
zander
God Like
God Like


Joined: 14 Jan 2004
Posts: 540
Location: england
Reputation: 66.6

PostPosted: Sun Jan 25, 2004 2:54 pm    Post subject: Reply with quote

change were it says admin to mod
Back to top
Dazzy
Agent
Agent


Joined: 09 Jan 2004
Posts: 1731

Reputation: 72.3

PostPosted: Sun Jan 25, 2004 2:56 pm    Post subject: Reply with quote

*lazy* i tried this with you, i want it so when a mod does a popup it goes mod alert and when a admin does one it says admin........
Back to top
Porto
Senior Member
Senior Member


Joined: 07 Jan 2004
Posts: 152

Reputation: 31.4Reputation: 31.4Reputation: 31.4

PostPosted: Sun Jan 25, 2004 2:56 pm    Post subject: Reply with quote

Code:
 $self->set_name("Admin Alert: $popname<br />

change to

Code:
$self->set_name("Mod Alert: $popname
Back to top
Dazzy
Agent
Agent


Joined: 09 Jan 2004
Posts: 1731

Reputation: 72.3

PostPosted: Sun Jan 25, 2004 3:29 pm    Post subject: Reply with quote

*lazy*, do i have to have 2 popup commands then
Back to top
And1 Hot Sauce
Newbie
Newbie


Joined: 24 Jan 2004
Posts: 39

Reputation: 28.6Reputation: 28.6Reputation: 28.6

PostPosted: Sun Jan 25, 2004 3:57 pm    Post subject: Reply with quote

Is there a way to take off Just sign on "I" looked in the old Forums and it still says has just sign on
Back to top
eric256
The Keymaker
The Keymaker


Joined: 03 May 2006
Posts: 2292
Location: Colorado
Reputation: 47Reputation: 47Reputation: 47Reputation: 47Reputation: 47

PostPosted: Sun Jan 25, 2004 5:36 pm    Post subject: Reply with quote

that last post may just as well have been in greek. Try reading it before hiting post next time. Also for having one code for admin and one for mod you prob do want to commands one in each directory named differently.
_________________
Eric256
Proud previous owner and current admin of Bot-depot.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> General Chat & Discussion 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