24/7 bot in channel
mIRC Code
+ 1 likes
Please Register to submit score.
| Average Score | 6.0 |
| Scores Submitted | 3 |
| Date Added | Jan 29, 2008 |
| Last Updated | Jan 29, 2008 |
| Tags | access bot channel join notify part |
|
|
Introduction
should the connected bot ping out or the user go off line.. one of the other 2 bots will auto join the channels.. and then when the master bot comes back online and in channel.. it will leave the 3 channels.
oh i nearly forgot to mention.. the script checks to see if any of the other 2 bots are online first or in channel before it connects to the rooms
ps... the dual nicks and tri channels is only how i have been using the script. it can be set for 1 nick or many nicks.. 1 room or many rooms.
this script works via the notify system on mirc which i believe is a first here on the site for a script like this.
this is one of the more advanced scripts from me and i hope you will review it fairly and rate it as it works, not on how it is coded..
mIRC Snippet:
24/7 bot in channel
Posted on Feb 2, 2008 5:43 pm
Posted on Feb 2, 2008 5:43 pm
this keeps bot 24 hours online when you log off from mirc?
mIRC Snippet:
24/7 bot in channel
Posted on Feb 2, 2008 6:31 pm
Posted on Feb 2, 2008 6:31 pm
no.. sorry if i didnt explain it better. i have a bot, as do 2 of my ops. the bot runs 3 channel's control scripts etc. all bots are online but only one of them are in the channels. the others are sat in the "hallway" as it were idling. if the master bot goes offline, the script on each of the bots checks to see.. A - which of the other 2 bots are online, and if none are in channels, it will auto join them. if any of the other bots come on and in channel, then it will auto leave them. for example....
Bob, Tom, and Sally.
Bob runs the master bot. tom and sally have the "backup bots". If bob's goes offline then each of tom's and sally's bots will get the message via unotify and try to join the channels that bob's was in. however.. if one of the other bots are there already, it will not join. on the same note. if it joins the channels and bob's comes back on line and into the channels, it will leave them and go back to standby.
i hope that makes a bit more sense. if not let me know and i will try and simplify it a bit more for you
Bob, Tom, and Sally.
Bob runs the master bot. tom and sally have the "backup bots". If bob's goes offline then each of tom's and sally's bots will get the message via unotify and try to join the channels that bob's was in. however.. if one of the other bots are there already, it will not join. on the same note. if it joins the channels and bob's comes back on line and into the channels, it will leave them and go back to standby.
i hope that makes a bit more sense. if not let me know and i will try and simplify it a bit more for you
mIRC Snippet:
24/7 bot in channel
Posted on Feb 3, 2008 4:32 am
Posted on Feb 3, 2008 4:32 am
Yeah, the idea is nice, but you could make it simpler for the clients, somehow, for example:
And now all you have to do is:
Replace:
With:
And replace:
With:
This makes it user-friendlier and a little bit more professional :)
| Code: |
| alias -l getbots { .var %botnicks = Bob,Tom,Sally .var %n = 0 .var %num = $numtok(%botnicks,44) :again while (%n < %num) { .inc %num if ($gettok(%botnicks,%num,44) = $1) { return 1 } .goto again } } |
And now all you have to do is:
Replace:
| Code: |
| if ( ( $nick == <nick1> ) || ( $nick == <nick2> ) ) { if ( ( $notify(<nick1>).ison == $false ) && ( $notify(<nick2>).ison == $false ) ) { |
With:
| Code: |
| if ($getbots($nick) = 1) && (!$notify($nick).ison) { |
And replace:
| Code: |
| if ( ( $nick == <nick1> ) || ( $nick == <nick2> ) ) { |
With:
| Code: |
| if ($getbots($nick) = 1) { |
This makes it user-friendlier and a little bit more professional :)
mIRC Snippet:
24/7 bot in channel
Posted on Feb 3, 2008 4:33 am
Posted on Feb 3, 2008 4:33 am
Ahh, yeah - sorry a bit mistake in getbots aliases:
.inc %num should be .inc %n
and
if ($gettok(%botnicks,%num,44) = $1) { return 1 }
should be
if ($gettok(%botnicks,%n,44) = $1) { return 1 }
Sorry, my bad :)
.inc %num should be .inc %n
and
if ($gettok(%botnicks,%num,44) = $1) { return 1 }
should be
if ($gettok(%botnicks,%n,44) = $1) { return 1 }
Sorry, my bad :)
mIRC Snippet:
24/7 bot in channel
Posted on Feb 3, 2008 6:34 am
Posted on Feb 3, 2008 6:34 am
i will have to be totally honest here Noutrious and admit you have me totally lost there heh.. that level of scripting still eludes my grasp of understanding at the moment. i am finding it hard going learning :(
i appreciate the feedback though as it is encouraging. many thanks :))
i appreciate the feedback though as it is encouraging. many thanks :))
mIRC Snippet:
24/7 bot in channel
Posted on Feb 8, 2008 7:41 am
Posted on Feb 8, 2008 7:41 am
Nothing so special about that all - just /help $gettok and stuff, you will learn fast.
I have a way to learn too, because here is a one stupid mistake:
:again
and
.goto again
isn't needed in while (), i figured that out yesterday - so i have been eating a little bit more bytes of resources at my scripts than needed!
I have a way to learn too, because here is a one stupid mistake:
:again
and
.goto again
isn't needed in while (), i figured that out yesterday - so i have been eating a little bit more bytes of resources at my scripts than needed!
mIRC Snippet:
24/7 bot in channel
Posted on Feb 25, 2008 4:45 am
Posted on Feb 25, 2008 4:45 am
Hmm i like it finally got around to using it actualy.i have mine set up pretty simple i only have one server security bot so its easy.The "Sleeper" bot idles in one of my channels(prolly make this random soon),Just like its supossed if its notified that my main bot went off line,its changes nicks(gains admin at this point),joins all the channels that the main bot was in then ops it self an takes over the main bots security duties,being its just 2 mIRC applications i just use the same scripts an upadate when needed so all the protections an data remain the same,altho the only thing i really loose is the hash data,which i dont hav to i could relay all data to the Sleeper as my main bot works all day so i wont loose anything.I'd actually like to expand on the idea further,since ppl will be looking to target the sleeper bot i actually like to haev the Sleeper auto disonnect change Indent an Fullname an even change to a proxy(list of about 10 working that would be on my exempt list on the main bot to get past it),Then reconnect an be anonomous again,prolly add anty idle along with some other things.Sorry gon off on rant there its a good idea tho,the reation time is a bit slower then lets say a on connect notice ora quit notice but then again the Sleeper doesnt hav to be in the same room or see notices to activate so it can be anonumous still so i ll deal with the reaction time.Ah also i changed theSleeper to -admin on connection notice of the main bot returning then join a certain channel an change to a random nick name.This way no trace about the only ppl know that it exists are the ppl seeing the indent/host then they can target it after that but all attacks to the sleeper whiles its not active i will relay to the main bot an hav the main bot protect the Sleeper.Yeah im just gettin silly i know lol there more but i ll spare you XD"Rate it or Hate it?"....7/10.Good work nice idea.`-.-´
mIRC Snippet:
24/7 bot in channel
Posted on Feb 25, 2008 11:13 am
Posted on Feb 25, 2008 11:13 am
you gots it El lol... it just ensures that there is always one bot in channel at all times that runs the main control scripts for that channel.. thanks for the rating and hope you found it an unusual but useful snippet :)
mIRC Snippet:
24/7 bot in channel
Posted on Sep 19, 2008 7:42 am
Posted on Sep 19, 2008 7:42 am
you could use a while loop to make it join channels from a txt file
that way it could "protect" as many channels as you like.
awesome script, this bot could be exanded greatly and i hope you do.
i liike.
you could maybe even get into putting this into sockets.
that way it could "protect" as many channels as you like.
awesome script, this bot could be exanded greatly and i hope you do.
i liike.
you could maybe even get into putting this into sockets.








