mIRC Home    About    Download    Register    News    Help

Print Thread
Bot ban #107153 07/01/05 12:20 PM
Joined: May 2004
Posts: 39
S
Scriptor Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: May 2004
Posts: 39
Ok well my bot is setup now thanks to some of you great people here! ^_^

But I'm sure I'll have some abusers I'd like it to keep logs in every pc. But from besides that I want a script that bans that user from it...If they abused it, other people can still use it but only that one person no longer can.

Thanks! laugh


Do the monkey!
Re: Bot ban #107154 07/01/05 12:37 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
And how would it get abused? Examples on what you mean?

Re: Bot ban #107155 07/01/05 09:45 PM
Joined: Nov 2004
Posts: 332
R
ricky_knuckles Offline
Fjord artisan
Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
i think hes going to have pretty open access
so alot of people will be accessing the bot so there bound to be a moron or two
the big trick will be the definition of abuse
youd be better of restricting any commands you dont want them having access too


The Kodokan will move you, one way or another.
Re: Bot ban #107156 07/01/05 09:49 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Well, IMO I never use access levels. It is always a * access. And store users access levels and such in a hash table which is so much secure.

Re: Bot ban #107157 08/01/05 02:35 AM
Joined: Sep 2004
Posts: 200
I
IR_n00b Offline
Fjord artisan
Offline
Fjord artisan
I
Joined: Sep 2004
Posts: 200
you could add this to a new script:
on *:text:*:#: {
if (<command prefix>* iswm $1-) {
if ([ %flood.command. [ $+ [ $nick ] ] ] != $null) {
set %flood.command. $+ $nick 1
timer 1 20 unset %flood.command. $+ $nick
halt
}
else {
inc %flood.command. $+ $nick 1
if ([ %flood.command. [ $+ [ $nick ] ] ] > 5) {
mode $chan -ohvaq+b $nick $nick $nick $nick $nick $address($nick,12)
kick $chan $nick Command flooding
}
}
}
you can change the kick msg and the timers as you want if the command prefix is ! then it would ben if (!* iswm $1-) {
this would allow 6 commands (i think) in 20 seconds.