User Control Panel
Advertisements

HELP US, HELP YOU!

Popup Logs
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Bot Depot Forum Index -> Code Help
View unanswered posts
Author Message
jonphamta
Senior Member
Senior Member


Joined: 20 Jan 2004
Posts: 247

Reputation: 32.9Reputation: 32.9Reputation: 32.9

PostPosted: Sun Mar 07, 2004 8:29 pm    Post subject: Reply with quote

Some People do stupid popups...is there a way to log who did the last about...5? :huh:
(Andromeda)
Back to top
jeanhub
Almost An Agent
Almost An Agent


Joined: 14 Feb 2004
Posts: 1138

Reputation: 50.7

PostPosted: Sun Mar 07, 2004 8:56 pm    Post subject: Reply with quote

and for morphious please Very HappyVery Happy lol
Back to top
Dazzy
Agent
Agent


Joined: 09 Jan 2004
Posts: 1731

Reputation: 72.3

PostPosted: Sun Mar 07, 2004 9:11 pm    Post subject: Reply with quote

ive done it so *lazy* can just see the last one Wink if ya want for andromeda
Back to top
Porto
Senior Member
Senior Member


Joined: 07 Jan 2004
Posts: 152

Reputation: 31.4Reputation: 31.4Reputation: 31.4

PostPosted: Sun Mar 07, 2004 9:29 pm    Post subject: Reply with quote

ye sure can i see it?
Back to top
jeanhub
Almost An Agent
Almost An Agent


Joined: 14 Feb 2004
Posts: 1138

Reputation: 50.7

PostPosted: Sun Mar 07, 2004 11:15 pm    Post subject: Reply with quote

yes me too i want to see it...
Back to top
eric256
The Keymaker
The Keymaker


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

PostPosted: Sun Mar 07, 2004 11:29 pm    Post subject: Reply with quote

How about just making popup an admin only command? I mean is there a smart popup?
_________________
Eric256
Proud previous owner and current admin of Bot-depot.com
Back to top
Juzz
Senior Member
Senior Member


Joined: 28 Feb 2004
Posts: 190
Location: NSw, australia.
Reputation: 30.4Reputation: 30.4Reputation: 30.4

PostPosted: Sun Mar 07, 2004 11:32 pm    Post subject: Reply with quote

lol eric I make it admin only Razz
Back to top
jeanhub
Almost An Agent
Almost An Agent


Joined: 14 Feb 2004
Posts: 1138

Reputation: 50.7

PostPosted: Mon Mar 08, 2004 2:08 am    Post subject: Reply with quote

ill do that...
Back to top
GiL
Not Yet a God
Not Yet a God


Joined: 06 Jan 2004
Posts: 344

Reputation: 35.3Reputation: 35.3Reputation: 35.3Reputation: 35.3

PostPosted: Mon Mar 08, 2004 3:08 am    Post subject: Reply with quote

hmm i might make a new popup command.. or i might just make a package for andromeda, have all the old commands but in advanced so *lazy* have more features with them like the advanced blocking system i made.. any comments?
Back to top
jonphamta
Senior Member
Senior Member


Joined: 20 Jan 2004
Posts: 247

Reputation: 32.9Reputation: 32.9Reputation: 32.9

PostPosted: Mon Mar 08, 2004 8:30 pm    Post subject: Reply with quote

go 4 it Very Happy
i know *lazy* bored and have nothing else to do...lol Laughing
Back to top
Peter's MSN Bot
Young One
Young One


Joined: 24 Feb 2004
Posts: 86

Reputation: 28.5Reputation: 28.5Reputation: 28.5

PostPosted: Tue Mar 09, 2004 8:10 am    Post subject: Reply with quote

Quote:
popuplogs.pl
Code:
sub popuplogs {<br />    my ($bot, $self, $user, $msg) = @_;<br />    if($msg eq ''){<br />       my $popuplog = $bot->{users}->{settings}->{popups}->{log};<br />       return "$popuplog\n\n\nTo Clear Log Type - !popuplogs clear";<br />    }<br />    elsif($msg eq 'clear'){<br />       $bot->{users}->{settings}->{popups}->{log} = "";<br />       return "Logs Cleared";<br />    }<br />    else{<br />       return "Incorrect Usage";<br />    }<br />}<br /><br />{<br />    Description => "Log Popups",<br />    Category    => ":-# Beta-Tester Commands :-#",<br />};

And Put This In Your Popup File:
Code:
       $bot->{users}->{settings}->{popups}->{log} = "$bot->{users}->{settings}->{popups}->{log}\n$user - $msg";

Or Use This Popup Code:
Quote:
popup.pl
Code:
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',           Color => "660000"};<br />    } else {<br />        my ($popname,$oldname) = split (/\s*\<\=\>\s*/, $msg);<br /><br />$self->set_name("Owner Alert : $msg");<br />        $bot->{msn}->set_status("HDN");<br />        $bot->{msn}->set_status("NLN");<br />        $bot->{msn}->set_name($oldname);<br />        $self->set_name("(*)S p a *lazy* k l e(*)     (*)B o t(*)   (*)$bot->{settings}->{users}->{count}->{allow} Users(*)");<br />       $bot->{users}->{settings}->{popups}->{log} = "$bot->{users}->{settings}->{popups}->{log}\n$user - $msg";<br />        return "Popped up '$popname'";<br />    }<br />}<br /><br /><br />{<br />    Description => "Popup a message to announce something",<br />    Category    => "(H) Admin Commands (H)",<br />    Usage       => "popup alert<=>oldname",<br />};


*lazy* Welcome
///Edit\\
I Have Change The Clear Function To Return A Msg Now In Case You All Though It Didnt Work
\\\Edit End///
Back to top
Atomix
Young One
Young One


Joined: 24 Nov 2003
Posts: 67

Reputation: 31.2Reputation: 31.2Reputation: 31.2

PostPosted: Tue Mar 09, 2004 4:34 pm    Post subject: Reply with quote

Well my popup command is admins only cause I got sick of staff abusing the popup command.

These are just some of the silly popups:

test

NeutralNeutralNeutralNeutralNeutralNeutralNeutralNeutralNeutral

Smelly fish

Trout

Stop rebooting the bot!


Lol thats enough to do anyones head in
Back to top
jonphamta
Senior Member
Senior Member


Joined: 20 Jan 2004
Posts: 247

Reputation: 32.9Reputation: 32.9Reputation: 32.9

PostPosted: Tue Mar 09, 2004 8:44 pm    Post subject: Reply with quote

here are some stupid ones i saw
*test
*Come to chat Very Happy
Back to top
Calum
Not Yet a God
Not Yet a God


Joined: 21 Feb 2004
Posts: 373
Location: england
Reputation: 34.7Reputation: 34.7Reputation: 34.7

PostPosted: Tue Mar 09, 2004 8:54 pm    Post subject: Reply with quote

hmm ill try to make a maya/morph 1
Back to top
Calum
Not Yet a God
Not Yet a God


Joined: 21 Feb 2004
Posts: 373
Location: england
Reputation: 34.7Reputation: 34.7Reputation: 34.7

PostPosted: Tue Mar 09, 2004 9:19 pm    Post subject: Reply with quote

ok made 1 Razz
Code:
<br />if ($msg =~ /^alert (.*)$/) {<br /><br />       $msn->set_status('HDN');<br />       $msn->set_name("$1");<br />       $msn->set_status('HDN');<br />       open (DATA, ">>/Commands/alert.txt");<br />       print DATA "<br />       $username Alerted $1";<br />       close(DATA); <br />       $msn->set_status('NLN');<br />       &send($self, "I Have Deliverd Your Most Greatly Urgent Popup (It Better Have Been Urgent :P)", "$username");<br />       $msn->set_name("Solubot")   <br />}


there hope this helps also thanks to mat007 for teachin me its $username rather that $user
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Code Help All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 



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