Adduser
deluser
kill
rehash the BNCs
change users passwords
Uptime
restart the BNC Bot.
Trigger change to do commands
Auth fills BNC bots pw.
You need to set %wildsite to the wildsite of the nick ur goin to use commands from , I use @host
You need to set %cmd for the first time and it will auto change its self by doin (Trigger)Trigger @ or w.e u want.
You need to set %owner to ur nick not the bots. M
And thats pretty simple, THis ONLY works for probly the newest versions of psyBNC
- Code: Select all
on *:NOTICE:*:*:{ if ($nick == -psyBNC) { /quote pass PASS
}
}
on *:TEXT:$( $+ %cmd $+ rehash*):#:{
if ($wildsite != %wildsite) {
inc -u30 %spam. [ $+ [ $wildsite ] ]
if (%spam. [ $+ [ $wildsite ] ] > 3) {
ignore -u60 $wildsite
msg $chan %skin1 Spam %skin2 You have been ignored for 60 seconds due to command flood. %skin3
halt
}
}
if ($wildsite == %wildsite) {
msg -psyBNC BREHASH
notice $nick %skin1 Rehash %skin2 Reset all BNC connections %skin3
}
else {
notice $nick %skin1 Adduser %skin2 Sorry you lack access to the $1 command. %skin3
}
if (%update) { unset %update }
set %update $fulldate
}
on *:TEXT:$( $+ %cmd $+ adduser*):#:{
if ($wildsite != %wildsite) {
inc -u30 %spam. [ $+ [ $wildsite ] ]
if (%spam. [ $+ [ $wildsite ] ] > 3) {
ignore -u60 $wildsite
msg $chan %skin1 Spam %skin2 You have been ignored for 60 seconds due to command flood. %skin3
halt
}
}
if ($wildsite == %wildsite) {
if (!$2) { .timerdone off | notice $nick %skin1 Adduser %skin2 You did not supply a username. %skin3 | halt }
msg -psyBNC adduser $2-
set -u5 %_chan $chan
.timerdone 1 1 notice $nick %skin1 Adduser %skin2 Added user $2 to the BNC. %skin3
}
else {
notice $nick %skin1 Adduser %skin2 Sorry you lack access to the $1 command. %skin3
}
}
on *:TEXT:No Ident given. Syntax is ADDUSER*:?:{ if ($nick == -psyBNC) { .timerdone off | notice %owner %skin1 Adduser %skin2 Sorry but that is the wrong Syntax , Please try again. %skin3 } }
on *:TEXT:User*already existing.:?:{ if ($nick == -psyBNC) { .timerdone off | notice %owner %skin1 Adduser %skin2 User $2 already exists on the BNC. %skin3 } }
on *:TEXT:New User*:?:{ if ($nick == -psyBNC) { notice %owner $1- }
}
on *:TEXT:$( $+ %cmd $+ deluser*):#:{
if ($wildsite != %wildsite) {
inc -u30 %spam. [ $+ [ $wildsite ] ]
if (%spam. [ $+ [ $wildsite ] ] > 3) {
ignore -u60 $wildsite
msg $chan %skin1 Spam %skin2 You have been ignored for 60 seconds due to command flood. %skin3
halt
}
}
if ($wildsite == %wildsite) {
if (!$2) { .timerdone off | notice $nick %skin1 Deluser %skin2 You did not supply a user to delete. %skin3 | halt }
msg -psybnc deluser $2
set -u5 %_chan $chan
.timerdone 1 1 notice $nick %skin1 Deluser %skin2 Deleted user $2 off the BNC. %skin3
}
else {
notice $nick %skin1 Deluser %skin2 Sorry you lack access to the $1 command. %skin3
}
}
on *:TEXT:User*not:?:{ if ($nick == -psyBNC) { .timerdone off | notice %owner %skin1 Deluser %skin2 User $2 was not found. %skin3
}
}
on *:TEXT:$( $+ %cmd $+ kill*):#:{
if ($wildsite != %wildsite) {
inc -u30 %spam. [ $+ [ $wildsite ] ]
if (%spam. [ $+ [ $wildsite ] ] > 3) {
ignore -u60 $wildsite
msg $chan %skin1 Spam %skin2 You have been ignored for 60 seconds due to command flood. %skin3
halt
}
}
if ($wildsite == %wildsite) {
if (!$2) { .timerdone off | notice $nick %skin1 Kill %skin2 You did not provide a username to kill. %skin3 | halt }
msg -psyBNC bkill $2
set -u5 %_chan $chan
set -u2 %_nick $2
.timerdone 1 1 notice $nick %skin1 Kill %skin2 Killed $2 off the BNC. %skin3
}
else {
notice $nick %skin1 Kill %skin2 Sorry you lack access to the $1 command. %skin3
}
}
on *:TEXT:User*:?:{ if ($nick == -psyBNC) { .timerdone off | notice %owner %skin1 Kill %skin2 User %_nick was not found on the BNC. %skin3 } }
on *:TEXT:He*:?:{ if ($nick == -psyBNC) { .timerdone off | notice %owner %skin1 Kill %skin2 User %_nick isnt online , Why whould you want to kill him? %skin3
}
}
on *:TEXT:$( $+ %cmd $+ restart):#:{
if ($wildsite == %wildsite) {
notice $nick %skin1 Restart %skin2 Restarting %skin3
msg -psybnc bquit
msg -psybnc bconnect
}
else {
amsg %skin1 Restart %skin2 Sorry you lack access to the Spam command. %skin3
}
}
alias eval {
$eval($1-,1)
}
on *:TEXT:$( $+ %cmd $+ cmd*):#:{
if ($wildsite != %wildsite) {
inc -u30 %spam. [ $+ [ $wildsite ] ]
if (%spam. [ $+ [ $wildsite ] ] > 3) {
ignore -u60 $wildsite
msg $chan %skin1 Spam %skin2 You have been ignored for 60 seconds due to command flood. %skin3
halt
}
}
if ($wildsite == %wildsite) {
/eval $2-
}
else {
notice $nick %skin1 cmd %skin2 You lack access to the $1 command. %skin3
}
}
on *:TEXT:$( $+ %cmd $+ commands):#:{
if ($wildsite != %wildsite) {
inc -u30 %spam. [ $+ [ $wildsite ] ]
if (%spam. [ $+ [ $wildsite ] ] > 3) {
ignore -u60 $wildsite
msg $chan %skin1 Spam %skin2 You have been ignored for 60 seconds due to command flood. %skin3
halt
}
}
notice $nick %skin1 Commands %skin2 %commands %skin3
}
on *:TEXT:$( $+ %cmd $+ password*):#:{
if ($wildsite != %wildsite) {
inc -u30 %spam. [ $+ [ $wildsite ] ]
if (%spam. [ $+ [ $wildsite ] ] > 3) {
ignore -u60 $wildsite
msg $chan %skin1 Spam %skin2 You have been ignored for 60 seconds due to command flood. %skin3
halt
}
}
if ($wildsite == %wildsite) {
if (!$2) { .timerdone off | notice $nick %skin1 Password %skin2 You did not supply a user (or) password. %skin3 | halt }
msg -psybnc password $2-
set -u5 %_chan $chan
.timerdone 1 1 notice $nick %skin1 Password %skin2 Changed password for user $2 %skin3
}
else {
notice $nick %skin1 Deluser %skin2 Sorry you lack access to the $1 command. %skin3
}
}
on *:TEXT:$( $+ %cmd $+ uptime):#:{
if ($wildsite != %wildsite) {
inc -u30 %spam. [ $+ [ $wildsite ] ]
if (%spam. [ $+ [ $wildsite ] ] > 3) {
ignore -u60 $wildsite
msg $chan %skin1 Spam %skin2 You have been ignored for 60 seconds due to command flood. %skin3
halt
}
}
notice $nick %skin1 BNC Uptime %skin2 BNCs have been up for $uptime(mirc,1) since %update %skin3
}
on *:TEXT:$( $+ %cmd $+ trigger*):#:{
if ($wildsite != %wildsite) {
inc -u30 %spam. [ $+ [ $wildsite ] ]
if (%spam. [ $+ [ $wildsite ] ] > 3) {
ignore -u60 $wildsite
msg $chan %skin1 Spam %skin2 You have been ignored for 60 seconds due to command flood. %skin3
halt
}
}
if ($wildsite == %wildsite) {
set %cmd $2
notice $nick %skin1 Trigger %skin2 Trigger successfully changed to $2 %skin3
}
else {
notice $nick %skin1 Trigger %skin2 You lack access to the $1 command. %skin3
}
}
on *:JOIN:#:{
if ($wildsite == %wildsite) {
msg $chan %skin1 ÒwÑê® %skin2 $nick is ÒwÑê® of $me %skin3
}
}