Admin tools

By MAcMAD on Jun 14, 2006

Channel admin tools.
Just add your channel name...
This must be loaded into your bots remotes

on 1:load:{
  //echo Admin tools ahs been loaded.
  .set %chan $$?="In what chan should the bot work (if in all then put #)"
  .set %password $$?="What should the password be"

}
on 1:TEXT:!login *:?:{
  if ( $$2 == %password ) {
    set %loggedin $nick
    /msg $nick You have logged in.
    .msg $nick !commdands are :
    .msg $nick 4!addnews <msg> to add the news
    .msg $nick !kick <nick> : kick a user
  }
  elseif ( $$2 != %password ) {
  }
}
on 1:TEXT:!addnews *:?:{
  if ( $nick != %loggedin ) {
    .msg $nick 4Your not loggen in.
  } 
  esleif ( $nick == %loggedin ) {
  writeini news.ini news2 news $2-
  .msg $nick 4The news has been saved as $readini(news.ini , news2 , news)
}
}

on *:Text:!k *:%chan: { 
if ( $nick == %loggedin ) {
  /kick # $$2- -- $+ $nick
}
elseif ( $nick != %loggedin ) {
  /msg $nick not logged in.
}
}

Comments

Sign in to comment.
MAcMAD   -  Jun 15, 2006

kk fixed the way you wany it. :D

 Respond  
Noutrious   -  Jun 15, 2006

i think on start you should:
.set %chan $$?=\"In what chan should the bot work (if in all then put #)\"
.set %password $$?=\"What should the password be\"

then replace
on :Text:!k :#AnimeDJ: {
with
on :Text:!k :%chan: {

 Respond  
xDaeMoN   -  Jun 14, 2006

You have an extra closing bracket at the end your 2nd On text event.

 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.