rendered paste bodyon *:TEXT:*:#:{
if ($nick isop $chan) {
if ($1 == .dnr) {
if (!$2) {
notice $nick DNR List (use .dnr #chan for more information)
notice $nick $readini(apps.ini,dnr,all)
}
if ($2) {
if ($readini(apps.ini,dnr,$2)) {
notice $nick $2 $+ : $v1
}
else notice $nick Couldn't find $2 $+ . Make sure it is in the DNR and try again.
}
}
if ($1 == .suspend) {
if (!$2 || !$3) { notice $nick Syntax: .suspend #chan <reason> | halt }
if ($readini(apps.ini,dnr,$2)) { notice $nick This channel is already suspeneded. | halt }
else {
writeini apps.ini dnr $2 $3-
writeini apps.ini dnr all $readini(apps.ini,dnr,all) $2
notice $nick Added $2 to the DNR
;; Bot commands here
}
}
if ($1 == .unsuspend) {
if (!$2) { notice $nick Syntax: .unsuspend #chan | halt }
if (!$readini(apps.ini,dnr,all)) { notice $nick Couldn't find $2 in the DNR. | halt }
else {
remini apps.ini dnr $2
var %text = $readini(apps.ini,dnr,all)
remini apps.ini dnr all
notice $nick Removed $2 from the DNR
writeini apps.ini dnr all $remove(%text,$2)
;; Bot commands here
}
}
}
if ($1 == .getabot) {
if (!$2) {
notice $nick Usage: .getabot #chan
halt
}
if (#* iswm $2) {
if ($2 isin $readini(apps.ini,chans,all)) {
notice $nick This channel is already registered.
}
else {
chkchan $2 $nick
}
}
}
if ($1 == .removeabot) {
if (!$2) {
notice $nick Usage: .removeabot #chan
halt
}
if (#* iswm $2) removechan $2 $nick
}
if ($1 == .staff) {
notice $nick Staff: Staff Here
}
if ($1 == .checkaccess) {
if (!$2) { notice $nick Syntax: .checkaccess <Chan> | halt }
else {
cs a $2 *botauth
.timer 1 3 notice $nick %fb.access detected in $2
}
}
}