Blind Bot

By blitzz on Jun 28, 2009

This is very simple command for bot. Actually i just post it coz i feel bored. This code as always for bot and for people to use the command. But i didn't add owner into it so everyone can use it and operator maybe can errr basting the bot. :)

In special case, if no operator in chan give voice to users, users can voiced themselves and voice their friends. Ex:

hahahah... !voice Dude77 *Mybot sets mode +v Dude77 <+vDude> !voice BigDady *Mybot sets mode +v BigDady <+vBigDady> Wow So, even you are not operator chan, u still can give voice to other users. You now what's next. And, for command !up , it cannot give you +o .Just manually op yourself. Maybe useless but it's ok for who wants normal bot. ```mirc on :text:*:#: { if ($me isop $chan) { if ($1 == !do) { describe $chan $$2- } if ($1 == !version) { msg $chan I'm using 4mIRC Version10 $version } if ($1 == !voice) { mode $chan +vvv $2- } if ($1 == !devoice) { mode $chan -vvv $2- } if ($1 == !up) && ($nick isop $chan) { mode $chan +ooo $2- } if ($1 == !down) && ($nick isop $chan) { mode $chan -ooo $2- } if ($1 == !kick) && ($nick isop $chan) { kick $chan $$2- 1|4!kick 1command by4 $nick } if ($1 == !ban) && ($nick isop $chan) { mode $chan +b $$2- } if ($1 == !bkick) && ($nick isop $chan) { ban -k $chan $$2- 2 1|4!bkick 1command by4 $nick } if ($1 == !kban) && ($nick isop $chan) { kick $chan $$2- 1|4!kban 1command by4 $nick | mode $chan +b $address } if ($1 == !addakick) && ($nick isop $chan) { cs akick $chan add $$2- } if ($1 == !delakick) && ($nick isop $chan) { cs akick $chan del $$2- } if ($1 == !slap) { describe $chan slaps $$2- around a bit with a large trout } if ($1 == !topic) && ($nick isop $chan) { topic $chan $2- } if ($1 == !kreason) && ($nick isop $chan) { kick $chan $$2- 1|4!kreason 1by4 $nick } if ($1 == !server) { msg $chan I am connecting from 10 $server 1:10 $port 1 $network } if ($1 == !count) { notice $nick Counting... please wait... | timer 1 2 notice $nick Finished1 $nick($chan,0)$+ 5user(s) } if ($1 == !myservice) { notice $nick Command(s) from me 10!do1|10!version1|10!voice1|10!devoice1|4!up1|4!down1|44!kick1|4!bkick1|4!kban|4!addakick1|4!delakick1|10!slap1|4!topic1|4!kreason1|10!server1|10!count1|10!comp1| } if ($1 == !comp) { notice $nick 10,10%%%%% 1,0 user only 4,4%%%%% 1,0 operator only | notice $nick 1This command is base on the 4!myservice 1color } if ($1 == !mySERV) { notice $nick 1To use me, you have to make sure i'm at least 4Sop 1and in mode 4+o 1to keep all this command works. } } } on @*:ban:#: { if ($bnick == $me) && ($banmask iswm $address($me,5)) { cs unban $chan $me } } on @*:kick:#: { if ($knick == $me) { cs unban $chan $me | cs invite $chan $me | timer 1 1 join $chan } } on !*:join:#: { notice $nick 1Welcome to our world 7 $nick | notice $nick 1Please have a nice chat in here. 10Chayo 6Chayo10!! | notice $nick 1Type 4!myservice 1to see my service list and 4!comp 1to see which command you can use | notice $nick 1And type 4!mySERV 1to read my intro before using me } } ```

Comments

Sign in to comment.
knoeki   -  Jun 29, 2009

@knoeki :
I agree it's not really safe, but it's up to you which operator do you believe to share the bot command.

yes, but as soon as you type the command, everybody sees it, and people MIGHT just try it out, and they just MIGHT figure out that they can take over your channel very easily.

 Respond  
blitzz   -  Jun 29, 2009

@TravisT :
I didn't mean i didn't test it n i never post my snippet before testing it..but yeah as i said, i'll update it later when i have a time.

 Respond  
TravisT   -  Jun 29, 2009

You mean you didnt test it? Just threw it out there?

I can understand leaving it up to us to add user levels I guess, but you should really have flood protection unless you want to flood out your script.

Also, take a look at 'elseif'.

 Respond  
blitzz   -  Jun 29, 2009

@knoeki :
I agree it's not really safe, but it's up to you which operator do you believe to share the bot command.

@Slumbermann :
I'll update it when i have a time.

 Respond  
blitzz   -  Jun 29, 2009

@WorldDMT,@knoeki,@4 :
Actually i dont really remember what command so just put like that..but when saw Jethro
cmment, ah yes that's it now i remember..

 Respond  
blitzz   -  Jun 29, 2009

Aahh yes Jethro_..that's it $bnick $knick.. i alwayz forgot these simple command..half remember half not..

 Respond  
Jethro   -  Jun 28, 2009

I think he meant

on @*:KICK:#:if ($knick == $me) {

and

on @*:BAN:#:if ($bnick == $me) {
 Respond  
_4   -  Jun 28, 2009

i dont see a point in this, also, "if ($me != $me)" i would consult a therapist.

 Respond  
Slumbermann   -  Jun 28, 2009

delaop
delsop
delhop

u can add them too..

 Respond  
knoeki   -  Jun 28, 2009

this is just wrong on several levels...

1) everyone can trigger any command. it's not really secure at all.
2) as already pointed out, wtf @ "if ($me == $me)" ? kind of a pointless condition, since it's always true.

try reading up on userlevels.

 Respond  
WorldDMT   -  Jun 28, 2009

if ($me = $me) !!! :D

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.