Auto Identify (for mIRC bot)
Platform: mIRC
Published Aug 06, 2012
Updated Aug 08, 2012
Simple auto identify script for ur mIRC bot.
How it works ?
1. You need to create owners.txt file in ur bot's folder (example mIRCbot->create it here)
2. !addowner nick or !delowner nick to give someone bot owner status
3. !autologin on/off - to toggle on/off auto identify/login our bot to irc network (only users which was add by us to bot owners list can use that cmd !)
4. Happy use ;)
on *:text:!addowner *:#:{
if ($nick == RealBotOnwerNick) {
write owners.txt $2
msg $chan $2 add to $me bot owners list !
}
else {
notice $nick Not Allowed $nick !
}
}
on *:text:!delowner *:#:{
if ($nick == RealBotOwnerNick) {
write -ds $2 owners.txt
msg $chan $2 deleted from $me bot owner list !
}
else {
notice $nick Not Allowed $nick !
}
}
on *:text:!autologin *:#:{
if ($2 == on) && ($read(owners.txt, nw, $nick) {
set %autologin on
msg $chan $nick toggled my auto identify mode ON !
}
elseif ($2 == off) && ($read(owners.txt, nw, $nick) {
set %autologin off
msg $chan $nick toggled ny auto identify mode OFF !
}
else {
msg $chan Sorry but you are NOT allowed to use this command $nick !
}
}
}
on *:connect: {
if (%autologin == on) {
msg nickserv identify <pass>
}
else {
if (%autologin == off) { }
}
========Other Version====================
on *:text:!addowner *:#:{
if ($nick == RealBotOwnerNick) {
write owners.txt $2
msg $chan $2 add to $me bot owners list !
}
else {
notice $nick Not Allowed $nick !
}
}
on *:text:!delowner *:#:{
if ($nick == RealBotOwnerNick) {
write -ds $2 owners.txt
msg $chan $2 deleted from $me bot owner list !
}
else {
notice $nick Not Allowed $nick !
}
}
#autologin on
on *:connect: {
msg nickserv identify ircaccountpassword
}
#autologin end
on *:text:!autologin *:#:{
if ($2 == on) && ($read(owners.txt, nw, $nick)) {
.enable #autologin
msg $chan $nick toggled my auto identify mode ON !
}
elseif ($2 == off) && ($read(owners.txt, nw, $nick)) {
.disable #autologin
msg $chan $nick toggled ny auto identify mode OFF !
}
else {
msg $chan NOT allowed $nick !
}
}
}