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