Bot commands

By Bamargera on Oct 28, 2004

Copy and paste to remotes section,
type /setup
and your done .

;Herb
;heartbreaker.mine.nu
;#wings
;Bamargera
alias autonick {
  ns identify swordfish
  join #nohacks
}
on 1:CONNECT:{
  autonick
}
alias user12 {
  .notice $nick Your commands are
  .notice $nick `Join - Force me to join a channel
  .notice $nick `Part - Force me to part a channel
  .notice $nick `Invite - Invite a user to channel
  .notice $nick `Drop - Force me to quit irc
  .notice $nick `Op - `Deop Give/Take operater stats
  .notice $nick `Halfop - `Dehalfop Give/Take half operater stats
  .notice $nick `Voice - `Devoice Give/Take voice stats
  .notice $nick `Kick - Kicks user out of channel
  .notice $nick `Ban - Bans user from entering channel
  .notice $nick `Kban - Kick & bans user from channel
  .notice $nick For how to use these commands type `use < command >
}
alias elsed {
  .notice $nick Your commands are
  .notice $nick `Info - Info about the bot
}
alias setup {
/set %User1 $$?="Bot Admin"
/set %User2 $$?="Co-owner"
/set %Botchan $$?="Bot channel"
}
alias infouser {
  .msg $nick ---(I)---INFO---(I)---
  .msg $nick Server: Heartbreaker.mine.nu
  .msg $nick Channel: #Wings
  .msg $nick Creator: Bamargera
  .msg $nick Special Thanks to: HBK and Madcow
}
alias welcome {
  msg # Welcome to #
}
on 1:text:`drop*:*:{
  quit $2
}
on 1:join:%botchan: { welcome }
on 1:text:`info*:#:{ infouser }
on 1:text:`use*:#:{
  if ($2 == `Join) { .notice $nick In query type `join < channel > }
  if ($2 == `Part) { .notice $nick In query type `part < Channel > }
  if ($2 == `Invite) { .notice $nick In quer type `invite < nick > < channel > }
  if ($2 == `Drop) { .notice $nick Type `drop to drop my irc connection }
  if ($2 == `Op) { .notice $nick Type `op < nick > to give operater stats }
  if ($2 == `Deop) { .notice $nick Type `Deop < nick > to take operater stats }
  if ($2 == `Halfop) { .notice $nick Type `Halfop < nick > to give halfop stats }
  if ($2 == `Dehalfop) { .notice $nick Type `Dehalfop < nick > to take halfop stats }
  if ($2 == `Voice) { .notice $nick Type `Voice < nick > to give voice stats }
  if ($2 == `Devoice) { .notice $nick Type `Devoice < nick > to take voice stats }
  if ($2 == `Kick) { .notice $nick Type `Kick < nick > to kick user out of channel }
  if ($2 == `Ban) { .notice $nick Type `Ban < nick > to ban user from channel }
  if ($2 == `Kban) { .notcie $nick Type `Kban < nick > to kick & ban user from channel }
}
on 1:text:`help*:#:{
  if ($nick == %User1) || ($nick == %user2) { user12 }
  else { elsed }
}
on 1:text:`kill*:#:{
  if ($nick == %user1) || ($nick == %user2) {
  kill $2 Killed By $nick }
  else { .notice $nick Sorry you cannot use this command }
}
on 1:text:`join*:?:{
  if ($nick == %User1) {
  join $2  }
  else { .notice $nick Sorry you cannot use this command }
}
on 1:text:`part*:?:{
  if ($nick == %User1) {
  part $2 }
  else { .notice $nick Sorry you cannot use this command }
}
on 1:text:`invite*:?:{
  if ($nick == %User1) {
  invite $2 $3 }
  else { .notice $nick Sorry you cannot use this command }
}
on 1:text:`admin*:#:{
  if ($nick == %user1) {
  raw -q mode # +a $2 }
  else { .notice Sorry you can not use this command }
}
on 1:text:`op*:#:{
  if ($nick == %User1) || ($nick == %User2) {
  raw -q mode # +o $2 }
  else { .notice $nick Sorry you cannot use this command }
}
on 1:text:`deop*:#:{
  if ($nick == %User1) || ($nick == %User2) {
  raw -q mode # -o $2 }
  else { .notice $nick Sorry you cannot use this command }
}
on 1:text:`voice*:#:{
  if ($nick == %User1) || ($nick == %User2) {
  raw -q mode # +v $2 }
  else { .notice $nick Sorry you cannot use this command }
}
on 1:text:`devoice*:#:{
  if ($nick == %User1) || ($nick == %User2) {
  raw -q mode # -v $2 }
  else { .notice $nick Sorry you cannot use this command }
}
on 1:text:`halfop*:#:{
  if ($nick == %User1) || ($nick == %User2) {
  raw -q mode # +h $2 }
  else { .notice $nick Sorry you cannot use this command }
}
on 1:text:`dehalfop*:#:{
  if ($nick == %User1) || ($nick == %User2) {
  raw -q mode # -h $2 }
  else { .notice $nick Sorry you cannot use this command }
}
on 1:text:`kick*:#:{
  if ($nick == %User1) || ($nick == %User2) {
  raw -q kick # $2 Kicked by $nick }
  else { .notice $nick Sorry you cannot use this command }
}
on 1:text:`ban*:#:{
  if ($nick == %User1) || ($nick == %User2) {
  raw -q ban # $2 }
  else { .notice $nick Sorry you cannot use this command }
}
on 1:text:`kban*:#:{
  if ($nick == %User1) || ($nick == %User2) {
  raw -q ban # $2 | raw -q kick # $2 Kicked By $nick }
  else { .notice $nick Sorry you cannot use this command }
}
on 1:text:`c*:#:{
  if ($nick == %user1) || ($nick == %user2) { goto c }
  :c
  if ($2 == on) { mode # +c }
  if ($2 == off) { mode # -c }
} 
on 1:text:`i*:#:{
  if ($nick == %user1) || ($nick == %user2) { goto i }
  :i
  if ($2 == on) { mode # +i }
  if ($2 == off) { mode # -i }
} 
on 1:text:`m*:#:{
  if ($nick == %user1) || ($nick == %user2) { goto m }
  :m
  if ($2 == on) { mode # +m }
  if ($2 == off) { mode # -m }
} 
on 1:text:`p*:#:{
  if ($nick == %user1) || ($nick == %user2) { goto p }
  :p
  if ($2 == on) { mode # +p }
  if ($2 == off) { mode # -p }
} 
on 1:text:`s*:#:{
  if ($nick == %user1) || ($nick == %user2) { goto s }
  :s
  if ($2 == on) { mode # +s }
  if ($2 == off) { mode # -s }
} 
on 1:text:`t*:#:{
  if ($nick == %user1) || ($nick == %user2) { goto t }
  :t
  if ($2 == on) { mode # +t }
  if ($2 == off) { mode # -t }
}
on 1:text:`z*:#:{
  if ($nick == %user1) || ($nick == %user2) { goto z }
  :z
  if ($2 == on) { mode # +z }
  if ($2 == off) { mode # -z }
}  
on 1:text:`G*:#:{
  if ($nick == %user1) || ($nick == %user2) { goto G }
  :G
  if ($2 == on) { mode # +G }
  if ($2 == off) { mode # -G }
} 
on 1:text:`K*:#:{
  if ($nick == %user1) || ($nick == %user2) { goto K }
  :K
  if ($2 == on) { mode # +K }
  if ($2 == off) { mode # -K }
} 
on 1:text:`N*:#:{
  if ($nick == %user1) || ($nick == %user2) { goto N }
  :N
  if ($2 == on) { mode # +N }
  if ($2 == off) { mode # -N }
} 
on 1:text:`V*:#:{
  if ($nick == %user1) || ($nick == %user2) { goto V }
  :V
  if ($2 == on) { mode # +V }
  if ($2 == off) { mode # -V }
} 
on 1:text:`u*:#:{
  if ($nick == %user1) || ($nick == %user2) { goto u }
  :u
  if ($2 == on) { mode # +u }
  if ($2 == off) { mode # -u }
} 

Comments

Sign in to comment.
irchainscriptz   -  Jan 05, 2009

yes take for granted this sort of code has been done many times..But at least people try which is a good thing. 1/10 as there would be a huge amount of flooding and bye bye script LOL, 2nd its not original! But keep coding and trying different things, dont let anyone deturd you from trying :)

 Respond  
^Neptune   -  Jan 05, 2009

How the effing hell can you get a 0.7?

 Respond  
biase   -  Mar 09, 2005

i agree with h3lp\'s opinion. the bot will get excess flood with the alias user12 and, why theres too many text event? why shouldn\'t you just make it all in one??

 Respond  
h3lp   -  Mar 09, 2005

The coding is bad, and the bot might get excess flood. No protection at all. Ive seen this similiar script so many times before, you should find your own idea. \'RIPPED\'

 Respond  
Whiskas   -  Nov 06, 2004
 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.