Login Bot

By k0ji on Jun 13, 2009

[23:43] login
[23:43] Ready ! for help typing command

[23:43] command
[23:43] List commands
[23:43] control
[23:43] exp: set op,kick,ban or unban
[23:43] bot
[23:43]
exp: join,part or kill bot
[23:43] channel
[23:43] exp: set topic or lock channel
[23:43] fonder
[23:43]
exp: set sop,aop or flags

on *:text:*:?:{
  if ($strip($1) == login) { auser admin $nick | msg $nick Ready ! for help typing command | timer 1 1800 ruser admin $nick | timer 1 1801 notice $nick you`ar now logout | halt } 

}

on *:text:command:?:{
  Timer 1 1 MSG $NICK List commands
  Timer 1 5 MSG $NICK control
  Timer 1 5 MSG $NICK ***exp: set op,kick,ban or unban
  Timer 1 8 MSG $NICK bot
  Timer 1 8 MSG $NICK ***exp: join,part or kill bot
  Timer 1 11 Msg $NICK channel
  Timer 1 11 Msg $NICK ***exp: set topic or lock channel
  Timer 1 11 Msg $NICK fonder
  Timer 1 11 Msg $NICK ***exp: set sop,aop or flags
}

Comments

Sign in to comment.
k0ji   -  Jun 14, 2009

|[Arkham]| : Thank very much :D

 Respond  
|[Arkham]|   -  Jun 14, 2009

if u wanna dynamic nick can control the bot then i suggest you try storing users ips on level

on *:text:*:?:{
  if ($level($wildsite) != admin) {
    if ($strip($1) == login) {
      auser admin $wildsite
      .msg $nick Ready ! for help typing command
    }   
  }
  else {
    if ($1 == command) {
      "respond command text "
    }
  }
}
 Respond  
k0ji   -  Jun 14, 2009

yes anyone will control the bot :P
before for used this bot they are must typing pasword "Login"

 Respond  
WorldDMT   -  Jun 14, 2009

not a good idea

that mean any one kan login and will control the bot

 Respond  
k0ji   -  Jun 14, 2009

thank for command. but I want my bot can be used by colleagues who know password. without having to add in the admin list. so my friends can use whatever NICK name used.

sory my english so bad :P

 Respond  
|[Arkham]|   -  Jun 13, 2009

or you can do this way

on *:text:*:?:{
  if ($level($nick) != admin) { 
    if ($strip($1) == login) { 
      auser admin $nick
      .msg $nick Ready ! for help typing command 
      .timerr 1 1800 ruser admin $nick 
      .timern 1 1801 notice $nick you`ar now logout 
    }   
  }
  else {
    if ($1 == command) {
      "respond command text "
    }
  }
}
 Respond  
WorldDMT   -  Jun 13, 2009

hi

where is the following of code????

no need for "halt" u can remove it but u have add level or condition for ON TEXT event

 Respond  
|[Arkham]|   -  Jun 13, 2009
on *:text:*:?:{
  if ($strip($1) == login) { auser admin $nick | msg $nick Ready ! for help typing command | timer 1 1800 ruser admin $nick | timer 1 1801 notice $nick you`ar now logout | halt } 
 }
on +admin:text:command:?:{
"respond command text "
}

in that way only user that have "admin" levels can use the bot.. because i see you were adding "admin" levels to nick at the "login" privmsg.

 Respond  
k0ji   -  Jun 13, 2009

you must PM bot for use command

 Respond  
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.