This is just a simple Operserv command bot to enable it just connect to a server this is my first snippet on here so please don't laugh thanks ;)
No Setup Required.
Changes:
1.Use commands in PM, Channel And Notices (Instead of just Channel)
2.Kline and Kill work.
Operserv Bot - By ░Tippy░
░Do Not Rip░
on *:TEXT:*:*: {
if ($1- == !Commands) { msg $nick My commands are...!Oper,!Admin,!Operserv,!Kill,!Kick,!Kline,!Help !Command. }
elseif ($1- == !Help Oper) { msg $nick !Oper will set you as oper but you will have to be a admin. }
elseif ($1- == !Help Admin) { msg $nick !Admin will set you as Administrator but you will need to be a Admin. }
elseif ($1- == !Help Operserv) { msg $nick !Operserv will tell you all about me. }
elseif ($1- == !Help Kill) { msg $chan !Kill will make me Kill Anyone you want as long as your Staff on Chat. }
elseif ($1- == !Help Kline) { msg $chan !Kline will Kline you. }
halt
}
on *:Join:#: {
if ($me isop $chan) { msg $chan I am a Operserv bot named $me say !Commands for my commands. }
halt
}
on *:TEXT:*:#: {
if ($1 == !Oper) && ($nick isadmin $server) && ($me isadmin $server) /set $nick +oper
elseif ($1 == !Admin) && ($me isadmin $server) && ($nick Isadmin $server) /set $nick +admin
elseif ($1 == !Operserv) /msg $nick 4,1 I am $me and I am using $version of mIRC.
on *:text:*:#:{
if ($me isadmin $server && $nick isadmin $server) {
if ($1 == !kline*) { kline $2- You are klined because $nick told me to kline you }
if ($1 == !kill*) { Kill $2- You are killed because $nick told me to kill you }
}
}
i have a couple comments
u can use on @*: rather than $me isop $chan
rather than saying if $1 == !help !kill, or !help !operserv, u can just do
on @:text:*:#:{
if ($1 == !help) {
if ($2 == !kill) msg $chan kill help
if ($2 == !operserv) msg $chan operserv help
}
if ($1 == !commands) msg $chan the commands
}
also, u can do
on *:text:*:#:{
if ($me isadmin $server && #nick isadmin $server) {
if ($1 == !kline) kline whatever
if ($1 == !kill) kill whatever
}
}
its not critical, i imagine it works the way you have it now, but i havent tested it