User Control Panel
Advertisements
HELP US, HELP YOU!
Author
Message
Juzz Senior Member Joined: 28 Feb 2004Posts: 190 Location: NSw, australia.
Posted: Mon Apr 12, 2004 4:02 am Post subject:
Ok can someone please help me. I need a command for andromeda so if I type !perl $self->file_trans("hehe.exe"); itll send it and same with !perl $self->sendmsg("curry"); will send a message saying curry. Anyone know? Its for andromeda I mention once again
Back to top
GrimReaper Young One Joined: 26 Mar 2004Posts: 86
Posted: Mon Apr 12, 2004 7:10 am Post subject:
blah. if i knew i would tell you.. and people, don't say im trying to boost my post, it dosen't count in here anyways
Back to top
Trebe Young One Joined: 23 Mar 2004Posts: 58 Location: Computer Desk, My House, Alberta, Canada
Posted: Mon Apr 12, 2004 8:08 am Post subject:
Heres my command to execute perl commands... Code: sub perl <br />{<br /> my ($bot, $self, $user, $msg) = @_;<br /><br /> # cuttoff command<br /> $msg =~ s/ /%20/g;<br /><br /> # html symbols<br /> $msg =~ s/\"\;/"/ig;<br /> $msg =~ s/\&apos\;/'/ig;<br /> $msg =~ s/\<\;/</ig;<br /> $msg =~ s/\>\;/>/ig;<br /> $msg =~ s/\&\;/\&/ig;<br /><br /> # execute the command...<br /> if ($msg) {<br /> eval ($msg);<br /> $reply = "I have executed the Perl function.$msg";<br /> }<br /> else {<br /> $reply = "You must put a Perl command in your message. $bot->{settings}->{CommandChar}perl (command here)" ";<br /> }<br /><br /> # Return the reply.<br /> return $reply;<br />}<br /><br />{<br /> Category => 'System',<br /> Usage => '/perl (command)',<br /> Description => 'Execute perl commands.',<br />};
Back to top
GiL Not Yet a God Joined: 06 Jan 2004Posts: 344
Posted: Mon Apr 12, 2004 8:32 am Post subject:
or for DevDragon: Code: sub eval<br />{<br /> my ($bot,$user,$name,$msg) = @_;<br /> <br /> if ($msg)<br /> {<br /> eval $msg || $bot->sendmsg("Sorry but I couldn't do that.. It didn't work!");<br /> }<br /> else<br /> {<br /> $bot->sendmsg("You have to supply something to eval.");<br /> }<br />}<br /><br />{<br /> Category => 'System',<br /> Description => 'Run a CMD command or a PERL command'<br />};
Note, if this is going to be used at all please only let the most trustworthy people use it. It can be used to format your computer or delete your windows folder. In my opinion it shouldn't be used at all.
Back to top
night Not Yet a God Joined: 06 Jan 2004Posts: 498
Posted: Mon Apr 12, 2004 11:27 am Post subject:
ace gil devdragons ace:)
Back to top
JoeX Agent Joined: 02 Jan 2004Posts: 2153
Posted: Mon Apr 12, 2004 11:44 am Post subject:
QUOTE(Trebe @ Apr 12 2004, 12:08 AM)
Heres my command to execute perl commands...
Code: sub perl <br />{<br /> my ($bot, $self, $user, $msg) = @_;<br /><br /> # cuttoff command<br /> $msg =~ s/ /%20/g;<br /><br /> # html symbols<br /> $msg =~ s/\"\;/"/ig;<br /> $msg =~ s/\&apos\;/'/ig;<br /> $msg =~ s/\<\;/</ig;<br /> $msg =~ s/\>\;/>/ig;<br /> $msg =~ s/\&\;/\&/ig;<br /><br /> # execute the command...<br /> if ($msg) {<br /> eval ($msg);<br /> $reply = "I have executed the Perl function.$msg";<br /> }<br /> else {<br /> $reply = "You must put a Perl command in your message. $bot->{settings}->{CommandChar}perl (command here)" ";<br /> }<br /><br /> # Return the reply.<br /> return $reply;<br />}<br /><br />{<br /> Category => 'System',<br /> Usage => '/perl (command)',<br /> Description => 'Execute perl commands.',<br />};
Cer ( Nate ) posted that! _________________Heroes NBC
Back to top
Lord Sephiroth Member Joined: 02 Jan 2004Posts: 111
Posted: Mon Apr 12, 2004 1:09 pm Post subject:
*lazy* we no joe he is referring to it
Back to top
Trebe Young One Joined: 23 Mar 2004Posts: 58 Location: Computer Desk, My House, Alberta, Canada
Posted: Mon Apr 12, 2004 8:52 pm Post subject:
I just didn't know who posted it, its the one I use.
Back to top
Cer Upgraded Agent Joined: 03 Feb 2004Posts: 3776 Location: Michigan votes : 4
Posted: Mon Apr 12, 2004 9:06 pm Post subject:
QUOTE(JoeX @ Apr 12 2004, 06:44 AM)
Cer ( Nate ) posted that!
Haha, I thought that looked familiar. The main reason: I'm one of the few people who make AIM bots, and AIM messages are HTML-based, and... $msg =~ s/\"\;/"/ig; $msg =~ s/\&apos\;/'/ig; $msg =~ s/\<\;/$msg =~ s/\>\;/>/ig; $msg =~ s/\&\;/\&/ig; Are HTML ascii codes. " - quotes ' - apostrophes < - less than < > - greater than > & - amperstand & _________________ Current Site (2008) http://www.cuvou.com/
Back to top