.commands for bot

By Weldon on Dec 31, 2012

Screenshots

This script is intended for my bot. To use, copy and paste in remotes.
I know this script could be done ALOT differently..
Commands are:
.mod = Gives Moderator status to a user
.remod = Take Moderator status from a user
.voice = Give Strict Moderation status to a user
.revoice = Take Strict Moderation status from a user
.quiet = Give quiet status to a user
.requiet = Take quiet status from a user
.kick = Kick a user out of a channel
.invite = Invites a user to a channel
.kb = Kick & ban user our of a channel
.admin = Gives a user Temp Administrative Status
.readmin = Take Administrative Status from user
.oper = Gives user Temp Operator Status
.reoper = Takes Operator Status from user
.shun = Shuns user
.reshun = Removes the shun placed on user
.kill = Kill a user off the server
.akill = Gives a user an auto kill on the server
.reakill = Removes auto kill from user on the server
.kline = Gives a user a server ban
.rekline = Removes the server ban
.renick = Resets a users Nickname

Just want to point out that the script is not done yet..
If someone could give me a hand i would appreciate it :)
Im trying to get the bans to use this ban type on the address: !@123.456.78. I have tried alot to get it to work right.
Every time i change $address($#,#) it gives me
!@.456.78.999
Right now everytime it bans, the person can still get in with no problem, i dont want them to get in at all :p
All tips and hints will be greatly appreciated xD

ON *:TEXT:.mod*:#: {
  if ($nick isop $chan) && ($me isop $chan) {
    mode $chan +o $2-
  }
}
ON *:TEXT:.remod*:#: {
  if ($nick isop $chan) && ($me isop $chan) {
    mode $chan -o $2-
  }
}
ON *:TEXT:.voice*:#: {
  if ($nick isop $chan) && ($me isop $chan) {
    mode $chan +v $2-
  }
}
ON *:TEXT:.revoice*:#: {
  if ($nick isop $chan) && ($me isop $chan) {
    mode $chan -v $2-
  }
}
ON *:TEXT:.quiet*:#: {
  if ($nick isop $chan) && ($me isop $chan) {
    mode $chan +q $2-
  }
}
ON *:TEXT:.requiet*:#: {
  if ($nick isop $chan) && ($me isop $chan) {
    mode $chan -q $2-
  }
}
ON *:TEXT:.kick*:#: {
  if ($nick isop $chan) && ($me isop $chan) {
    kick $chan $2- I was ordered to kick you out!
  }
}
ON *:TEXT:.invite*:#: {
  if ($nick isop $chan) && ($me isop $chan) {
    invite $2- $chan
  }
}
ON *:TEXT:.kb*:#: {
  if ($nick isop $chan) && ($me isop $chan) {
    ban $chan $address($2,4) $3- | kick $chan $2- You are banned!
  }
}
ON *:TEXT:.admin*:#: {
  if ($nick == Admin/User Nickname Here) { /setoper $2- +admin }
  if ($nick == Admin/User Nickname Here) { /setoper $2- +admin }
}
ON *:TEXT:.readmin*:#: {
  if ($nick == Admin/User Nickname Here) { /setoper $2- -admin }
  if ($nick == Admin/User Nickname Here) { /setoper $2- -admin }
}
ON *:TEXT:.oper*:#: {
  if ($nick == Admin/User Nickname Here) { /setoper $2- +oper }
  if ($nick == Admin/User Nickname Here) { /setoper $2- +oper }
}
ON *:TEXT:.reoper*:#: {
  if ($nick == Admin/User Nickname Here) { /setoper $2- -oper }
  if ($nick == Admin/User Nickname Here) { /setoper $2- -oper }
}
ON *:TEXT:.shun*:#: {
  if ($nick == Admin/User Nickname Here) { /shun $2- }
  if ($nick == Admin/User Nickname Here) { /shun $2- }
}
ON *:TEXT:.reshun*:#: {
  if ($nick == Admin/User Nickname Here) { /shun - $2- }
  if ($nick == Admin/User Nickname Here) { /shun - $2- }
}
ON *:TEXT:.kill*:#: {
  if ($nick == Admin/User Nickname Here) { /kill $2- I was ordered to kill you }
  if ($nick == Admin/User Nickname Here) { /kill $2- I was ordered to kill you }
}
ON *:TEXT:.akill*:#: {
  if ($nick == Admin/User Nickname Here) { /akill $2- Dont try to come back }
  if ($nick == Admin/User Nickname Here) { /akill $2- Dont try to come back }
}
ON *:TEXT:.reakill*:#: {
  if ($nick == Admin/User Nickname Here) { /rakill $2- }
  if ($nick == Admin/User Nickname Here) { /rakill $2- }
}
ON *:TEXT:.kline*:#: {
  if ($nick == Admin/User Nickname Here) { /kline $2- }
  if ($nick == Admin/User Nickname Here) { /kline $2- }
}
ON *:TEXT:.rekline*:#: {
  if ($nick == Admin/User Nickname Here) { /unkline - $2- }
  if ($nick == Admin/User Nickname Here) { /unkline - $2- }
}
ON *:TEXT:.renick*:#: {
  if ($nick == Admin/User Nickname Here) { /services reset $2- }
  if ($nick == Admin/User Nickname Here) { /services reset $2- }
}

Comments

Sign in to comment.
blackvenomm666   -  Jan 02, 2013

ok i'll get on later when i'm not at work. you prolly know me lol <<DarknessFalls

 Respond  
Weldon   -  Jan 02, 2013

xtremechat.servebeer.com:6667 #XtremeChat
my nick is Weldon, my bots name is Juggs

 Respond  
blackvenomm666   -  Jan 01, 2013

yes i'm aware it's a chatspace type server. i meant what's the server addy. even if there is an autojoin on kick/ban if you ban them properly they won't be able to rejoin. give me the addy to the server you are using and what channel you're in and what nick you're using and i'll be able to help you out need to see how the server is set up

 Respond  
Weldon   -  Jan 01, 2013

i also just posted a screenshot of Juggs banning Guest20 and Guest20 being able to rejoin then i removed the ban. btw Guest20 is on Java so there is no auto join on kick/ban

 Respond  
Weldon   -  Jan 01, 2013

ChatSpace lol

 Respond  
blackvenomm666   -  Dec 31, 2012

different servers have their banmasks set differently what server are you using this on?

 Respond  
Abcdefmonkey   -  Dec 31, 2012

Looks fine, but it would be much easier to just use one ON TEXT event and just use elseif's to figure out the rest of the commands. :)

 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.