Get_A_Fix Master

Joined: 07 May 2005 Posts: 206 Location: New Zealand
|
Posted: Sat Jul 11, 2015 11:39 am Post subject: |
|
|
DALnet is one of the few IRCds that use /watch
It's probably a good idea to use that, as lots of times, due to splits, the bots get confused (as their hostmasks haven't been added to their nickserv access lists *because people like to change vHosts*) so they get changed to Guest?????
This is the best script I've used, for DALnet. It will also send a ghost command, if it's not using set Nickname, and it identifies to your mainnickname, so it doesn't matter what nick the bot connects with (like Guest?????, it will still Identify).
| Code: |
##############################################
# AutoIdent.tcl
# Name of Service you Identify to (for /watch, so if they come back online, bot will attempt to identify.
set servicesname "NickServ"
# Name of ChanServ
set chanservicename "ChanServ@services.dal.net"
# Name of NickServ
set nickservicename "NickServ@services.dal.net"
# Set the next line as your bot's Nickname to identify to.
set mynick "BotNickname"
# Set the next line as your bot's password on NickServ.
set nickserv_pass "nickpasshere"
############################################################################################## DO NOT EDIT BELOW THIS LINE!! ##############################################################################################
#################
# BINDS #
#################
bind raw - 601 services_offline
bind raw - 605 services_offline
bind raw - 604 services_online
bind raw - 600 services_online
bind evnt - init-server check_ghost
#################
# PROCEDURES #
#################
proc check_ghost {type} {
if {![isbotnick $::mynick]} {putquick "PRIVMSG $::nickservicename :GHOST $::mynick $::nickserv_pass" -next}
putquick "PRIVMSG $::nickservicename :identify $::mynick $::nickserv_pass"; putserv "watch +$::servicesname"
}
proc services_offline {from keyword args} {
putlog "Services have left the building!"
}
proc services_online {from keyword args} {
putserv "PRIVMSG $::nickservicename :identify $::mynick $::nickserv_pass"
putlog "Identified to $::servicesname"
}
putlog "AutoIdent, enabling watch.. (for $servicesname)"
putserv "watch +$servicesname"
|
There are probably a few thousand scripts like this, made for bots to identify, but the one that is inside your bot.conf file, that is the easiest and fastest method. You could even add a public/message command, to the code I posted above, and it would make it just that much better  _________________ We explore.. and you call us criminals. We seek after knowledge.. and you call us criminals. We exist without skin color, without nationality, without religious bias.. and you call us criminals. |
|