EN BOT DISCONNECT ALERT

By JamesBond on Dec 28, 2022

ENGLISH VERSION
hello everyone,
with this script you will be immediately informed when your BOT PC is restarted (because of a Windows Update) so that you can restart them quickly.

FOR YOUR INFORMATION
put this script in your MiRC and not in that of your BOT otherwise the script will not work!
and if YOUR MiRC and that of your BOT are on the zelvde PC, then this script will not work either
END OF INFORMATION

YOU NEED ACCESS TO THE CHANNEL #Services with the first part of the script
if you have access to the channel #Services, you can easily use the first script that is
The first lines are for a bot that is logged in to the NetWerk/Server
The 3rd line and 4th line is for a bot that is logged in to the NetWerk/Server WITHOUT a ZNC BOUNCER
USEFUL INFORMATION Where you see "Botname!ident@host" you have to replace it with your IP address for example: Botnaam!Bot@ChatToIRC.be
INFO that NOTIFICATIONS come from the #Services channel!
So if you don't have access to the channel #Services
THEN USE the following script that is under VARIOUS NOTIFICATIONS FOR WINDOWS UPDATE Connect / Disconnect... LINE 51

FORORDINARY USERS WHO DO NOT HAVE ACCESS TO THE CHANNEL #Services

VARIOUS NOTIFICATIONS FOR WINDOWS UPDATE Connect /Disconnect
The script below is for a bot that is logged into the NetWerk/Server WITHOUT a ZNC BOUNCER
USEFUL INFORMATION Where you see "Botname" you should replace it with your bot name for example: CrazyBot
at the moment you will not be able to know When the Bot will be offline or not if it is logged in to the NetWerk/Server with a ZNC BOUNCER

do you have any questions?
hairnet then not to contact us!
I wish you a lot of fun with the script!

;=====================================================
; VARIOUS NOTIFICATIONS FOR WINDOWS UPDATE
; this script gives an automatic Global if you restart the PC because of a Windows Update,
; if you restart the COMPUTER yourself, this Global will also work
; BEWARE if your MiRC and the MiRC of the bot is on the zelvde COMPUTER then this script (will not work)
;=====================================================
;=====================================================
; Auteur: JamesBond
; Homepagina: https://ChatToIRC.be/
; Netwerk: ChatToIRC 
; Server: irc.ChatToIRC.be
; Email: jamesbond@ChatToIRC.be
; Link NEDERLANDSE VERSIE: http://hawkee.com/snippet/24369/
; Link ENGLISH VERSION http://hawkee.com/snippet/24370/
;=====================================================

;=====================================================
; VARIOUS NOTIFICATIONS FOR WINDOWS UPDATE 
; The first lines are for a bot that is logged in to the NetWerk/Server with a ZNC BOUNCER
; The 3rd line and 4th line is for a bot that is logged in to the NetWerk/Server WITHOUT a ZNC BOUNCER
; USEFUL INFORMATION Where you see "Botname!ident@host" you have to replace it with your IP address for example: Botnaam!Bot@ChatToIRC.be
; INFO that NOTIFICATIONS come from the channel #Services,
; So if you don't have access to the channel #Services
; Then USE the following script that is under
; VARIOUS NOTIFICATIONS FOR WINDOWS UPDATE Connect / Disconnect staat... LINE 53
;=====================================================

on 1:TEXT:*:#Services:{ 
  if ($1 == USERS:) && ($2 == Botnaam!ident@host) && ($3 == is) && ($4 == now) && ($5 == away:) { 
    /bs SAY #Opers Bots COMPUTER is now Offline, please restart it as soon as possible $me $+ !    
    /msg Global Global Dear users of ChatToIRC, the Bots COMPUTER was automatically restarted, so the Bots are currently Offline, we are throwing the Bots back Online as soon as possible, We were also informed of this, sorry for the inconvenience, we wish you a nice stay further. with Kind regards The ChatToIRC team [this was an automatic Global]
  } 
  if ($1 == USERS:) && ($2 == Botnaam!ident@host) && ($3 == is) && ($4 == no) && ($5 == longer) && ($6 == away) {
    /msg #Opers Bots COMPUTER is now online again
    /msg Global Global Dear users of ChatToIRC, the Bots COMPUTER is now back on, so the Bots are online again, already our excusses even before the burden that the windows update had caused. we wish you a nice stay. kind regards The ChatToIRC team. [this was an automatic Global]
  }
  if ($1 == USERS:) && ($2 == Botnaam!ident@host) && ($3 == $3) && ($4 == disconnected) { 
    /bs SAY #Opers Bots COMPUTER is now Offline, please restart it as soon as possible $me $+ !    
    /msg Global Global Dear users of ChatToIRC, the Bots COMPUTER was automatically restarted, so the Bots are currently Offline, we are throwing the Bots back Online as soon as possible, We were also informed of this, sorry for the inconvenience, we wish you a nice stay further. with Kind regards The ChatToIRC team [this was an automatic Global]
  }
  if ($1 == USERS:) && ($2 == Botnaam!ident@host) && ($3 == changes) && ($4 == modes) && ($5 == to) {
    /msg #Opers Bots COMPUTER is now online again
    /msg Global Global Dear users of ChatToIRC, the Bots COMPUTER is now back on, so the Bots are online again, already our excusses even before the burden that the windows update had caused. we wish you a nice stay. kind regards The ChatToIRC team. [this was an automatic Global]
  } 
}

;=====================================================
; VARIOUS NOTIFICATIONS FOR WINDOWS UPDATE /Disconnect 
; The script below is for a bot that is logged into the NetWerk/Server WITHOUT a ZNC BOUNCER
; USEFUL INFORMATION Where you see "Botname" you should replace it with your bot name for example: CrazyBot
; at the moment you will not be able to know When the Bot will be offline or not if it is logged in to the NetWerk/Server with a ZNC BOUNCER
;=====================================================

on ^*:QUIT:{  
  if ($nick == BOTNAAM) || ($2 == BOTNAAM2) || ($3 == BOTNAAM3) { 
    /bs SAY #Opsenroom Bots COMPUTER is now Offline, please restart it as soon as possible $me $+ !    
    /bs SAY  #roomnaam Dear users of ChatToIRC, the Bots COMPUTER was automatically restarted, so the Bots are currently Offline, we are throwing the Bots back Online as soon as possible, We were also informed of this, sorry for the inconvenience, we wish you a nice stay further. with Kind regards The ChatToIRC team [this was an automatic Message]
  } 
}
on *:Join:#: {
  if ($nick == BOTNAAM) || ($2 == BOTNAAM2) || ($3 == BOTNAAM3) {
    /msg #Opsenroom Bots COMPUTER is now online again
    /bs SAY  #roomnaam Dear users of ChatToIRC, the Bots COMPUTER is now back on, so the Bots are online again, already our excusses even before the burden that the windows update had caused. we wish you a nice stay. kind regards The ChatToIRC team. [this was an automatic Message]
  }
}

Comments

Sign in to comment.
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.