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 }
}
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.
\"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.
\"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\".
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.
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 :)
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.
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.