User Control Panel
Advertisements

HELP US, HELP YOU!

Mod & Unmod Code

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Perl
View unanswered posts
Author Message
Myzterio
Not Yet a God
Not Yet a God


Joined: 13 Dec 2003
Posts: 429

Reputation: 38.1Reputation: 38.1Reputation: 38.1Reputation: 38.1

PostPosted: Fri Dec 26, 2003 11:03 pm    Post subject: Reply with quote

:huh: Hey, I Need help :S I Have the Mod Code but it works but it doesnt regonize them as a Moderator so when i !hardboot it still doesnt Sad

Here is The Code :

if ($msg =~ /^\!mod (.*)/i) {
$self->sendmsg("One moment please!", "$username");
open (DATA, ">>users/mods.txt");
print DATA "$1,";
close(DATA);
$self->sendmsg("$1 is now a moderator!");
return;


Thanks, Id appericate if anyone can help me Laughing
I have Created a Folder Called "users" and Did Everything But Still Something's Wrong With It.
Back to top
Nate
God Like
God Like


Joined: 12 Nov 2003
Posts: 553

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

PostPosted: Sat Dec 27, 2003 3:28 pm    Post subject: Reply with quote

http://www.bot-depot.com/forums/index.php?showtopic=203
Back to top
Myzterio
Not Yet a God
Not Yet a God


Joined: 13 Dec 2003
Posts: 429

Reputation: 38.1Reputation: 38.1Reputation: 38.1Reputation: 38.1

PostPosted: Sun Dec 28, 2003 2:24 am    Post subject: Reply with quote

:huh: I know that but Im having problems with the Moderator Code not the Unmode code, that explains the Unmod code :unsure:
Back to top
Joe
Young One
Young One


Joined: 09 Nov 2003
Posts: 89

Reputation: 32.1Reputation: 32.1Reputation: 32.1

PostPosted: Sun Dec 28, 2003 2:54 am    Post subject: Reply with quote

Have *lazy* tried:
Code:
if ($msg =~ /^\!mod (.*)/i) {<br />$self->sendmsg("One moment please!", "$username");<br />open (DATA, ">>users/mods.txt");<br />print DATA "$username";<br />close(DATA);<br />$self->sendmsg("$username is now a moderator!");<br />return;


or

Code:
if ($msg =~ /^\!mod (.*)/i) {<br />$self->sendmsg("One moment please!", "$username");<br />open (DATA, ">>users/mods.txt");<br />print DATA "$victim";<br />close(DATA);<br />$self->sendmsg("$victim is now a moderator!");<br />return;
Back to top
Keenie
Almost An Agent
Almost An Agent


Joined: 31 Oct 2003
Posts: 1071

Reputation: 52.4

PostPosted: Sun Dec 28, 2003 5:16 am    Post subject: Reply with quote

have you set up the handler correctly to see if they are a mod or not? i bet thats your problem.
Back to top
Myzterio
Not Yet a God
Not Yet a God


Joined: 13 Dec 2003
Posts: 429

Reputation: 38.1Reputation: 38.1Reputation: 38.1Reputation: 38.1

PostPosted: Sun Dec 28, 2003 9:25 am    Post subject: Reply with quote

Surprised I dont think So.. Im Just a New Learner On Perl, Altho I have Alote Of Commands Done.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Perl 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