Bot commands for admin

By DeathfireD on Mar 07, 2004

Change the yournick to the nick you use on mIRC then past it in your bots remotes log it on then log on another mIRC with the nick you added in the script then type !commands it will give you the list, if someone sees you do this and tryes they get an error saying "Sorry you dont have access. this is a very simple example i use for my bot you can add more commands.

on *:text:!commands:*:{
  if (yournick isin $nick) { /msg $nick Hi $nick My commands are !kill, !op, !messagechan and thats it.  }
  else {
  /msg # sorry you dont have access }
}
on *:text:!kill:*:{
  if (yournick isin $nick) { /quit 4 Im sorry for wasting your time  }
  else {
  /msg # 4 sorry you dont have access to that Command }
}
on *:text:!op*:*:{
  if (yournick isin $nick) { /op $chan $2 }
  else {
  /msg # 4 sorry you dont have access to that Command }
}
on *:text:!messagechan*:*:{
  if (yournick isin $nick) { /msg $chan $2 }
  else {
  /msg # 4 sorry you dont have access to that Command }
}

Comments

Sign in to comment.
ozeskid   -  Jun 05, 2008

should be if (yournick == $nick). isin is retarded for a name match like this. Also, !kill is retarded for a quit command. And the op command, should atleast check for if ($me isop $chan) before trying to op someone..

 Respond  
guest598594   -  Oct 22, 2007

why if (yournick isin $nick) ?

 Respond  
ZiX   -  Oct 22, 2007

The Kill doesn\'t work at all.

 Respond  
sailoreagle   -  May 06, 2004

I contradicted myself how? You aren\'t making sense. Also: whether you like it or not, people WILL use bots for channel management. Even on networks with some type of channel registration, if channel registration has requirements (see Quakenet, Undernet, etc), people who don\'t meet those requirements will use a bot, or more than one, to manage the channel. It\'s their right to do that. And I still hold you should tell people this is insecure, or use a more secure way of identifying who gets access to the bot. Because there WILL be people who know next to nothing about scripting, and just copy the code in their remotes and end up with an insecure bot.

 Respond  
DeathfireD   -  May 05, 2004

\"ANYTHING can be unsafe, even just a CTCP event (backdoor anyone?) - that\'s no reason to say \"well, X can be unsafe, so it doesn\'t matter if there\'s an unsafe flaw in my snippet\".\"\" you just Contradicted yourself mIRC has many things that are un safe in the help file and they tell you up front its unsafe. People looking at my snippet should know what it does by looking at the on text events. If there on a server without chanserv and they put a bot like that in there chat..first off why would you need a bot for something like that...most servers like that are just chat and not to many people even use op, half op, voice commands. They join and chat.

 Respond  
sailoreagle   -  Mar 23, 2004

\"The most people can do is kick ban op deop other people big deal\" - well, yes, big deal. Let\'s say you have your channel on a network without any sort of channel registration, so you are relying just on the bot to control the channel. I change my nick to a nick that contains yours, get ops from the bot, deop everybody else (including the bot), set modes +imklb aopsdyas 1 !@*, kick everybody out, and sit in the channel. You\'re going to get it back how? :) As for the while loop - no, actually it\'s not unsafe, it\'s got many, many useful uses in scripting. Otherwise it wouldn\'t be in the commands that can be used. ANYTHING can be unsafe, even just a CTCP event (backdoor anyone?) - that\'s no reason to say \"well, X can be unsafe, so it doesn\'t matter if there\'s an unsafe flaw in my snippet\".

 Respond  
DeathfireD   -  Mar 23, 2004

o dident see your other posts I am talking about the while loop and I do know the mechanics of flooding Im saying its unsafe and people can try and take over a chat with this bot by changing the name to the nick used but it wouldent work considering the owner is the onlyone that can kill the chat. The most people can do is kick ban op deop other people big deal if you look at it more hey you can edit any way you want learn $Adress or what ever Just posting my snippets thats all.

 Respond  
DeathfireD   -  Mar 23, 2004

Read my post on your bot commands. O and can we stop fighting? I just post little snippets that anyone can edit at there own risk People dont have to use them I just post them.

 Respond  
sailoreagle   -  Mar 22, 2004

Oh, and by the way, your comment about the \"endlis loop\" makes no sense. There\'s no endless loop snippet in this section that I can see, just a while loop demonstration - and if you try and make the finite while loop into an infinite while loop for flooding, you\'re more likely to flood off just yourself than flood off others. Try and learn a bit about the mechanics of flooding :)

 Respond  
sailoreagle   -  Mar 22, 2004

I don\'t post negative things, I post constructive criticism, offering suggestions and pointing out mistakes and problems. As for \"insecure\" ... well, ANY command or script in mIRC is potentially insecure (for instance, a simple CTCP event can be turned into a backdoor). Does that mean I\'m going to keep quiet when I see a possible problem or mistake in a script (such as a bot where a person only has to change their nick to contain yours and they gain access to your channel, giving them the ability to take it over if you\'re relying only on the one bot for control)? Nope.

 Respond  
DeathfireD   -  Mar 22, 2004

Sailoreagle all you ever post is negative about everything I havent yet seen you post 1 good thing about anyones snippets. and I agree about the new people coming and not knowing for now on ill make it clear \"you can add your own commands to it\" and insecure lol look at some of the first posts by the admin. the endlis loop can be turned into a flooder for chats thats insecure so deal with it dont make 6 posts about how it sucks.

 Respond  
sailoreagle   -  Mar 07, 2004

If you don\'t want people to comment on your snippets - why did you put them up? You can\'t expect people to ignore the negative sides of something you post and only make positive comments.

 Respond  
sailoreagle   -  Mar 07, 2004

DeathfireD: yeah, but there\'ll be people who\'ll come along not knowing much at all about scripting. And they\'ll see this and go \"oh cool, simple bot for me\", and end up with an insecure thing.

 Respond  
DeathfireD   -  Mar 07, 2004

cough read example \"this is a very simple example\" \"you can add more commands\" you can add or fix whatever you want i just posed it for a starter base.

 Respond  
Cypher87   -  Mar 07, 2004

Maybe you should use $address or use passwords.

 Respond  
sailoreagle   -  Mar 07, 2004

\"if (yournick isin $nick)\" ... ok, so I put \"sailoreagle\" there. Then somebody changes their nick to sailoreagle and controls my bot. Whee!

 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.